mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
fix spec
This commit is contained in:
@@ -11,18 +11,14 @@ feature 'site settings: general', type: :system, js: true do
|
||||
visit site_settings_general_path
|
||||
end
|
||||
|
||||
it 'lets edit the site name and logo' do
|
||||
it 'lets edit the site name' do
|
||||
new_site_name = 'New Site Name'
|
||||
new_site_logo = 'https://www.example.com/logo.png'
|
||||
|
||||
expect(page).to have_field('Site name', with: Current.tenant.site_name)
|
||||
expect(page).to have_field('Site logo', with: Current.tenant.old_site_logo)
|
||||
|
||||
expect(Current.tenant.site_name).not_to eq(new_site_name)
|
||||
expect(Current.tenant.old_site_logo).not_to eq(new_site_logo)
|
||||
|
||||
fill_in 'Site name', with: new_site_name
|
||||
fill_in 'Site logo', with: new_site_logo
|
||||
find('button', text: 'Save', match: :first).click
|
||||
|
||||
within '.siteSettingsInfo' do
|
||||
@@ -30,11 +26,9 @@ feature 'site settings: general', type: :system, js: true do
|
||||
end
|
||||
|
||||
expect(page).to have_field('Site name', with: new_site_name)
|
||||
expect(page).to have_field('Site logo', with: new_site_logo)
|
||||
|
||||
t = Tenant.first
|
||||
expect(t.site_name).to eq(new_site_name)
|
||||
expect(t.old_site_logo).to eq(new_site_logo)
|
||||
end
|
||||
|
||||
it 'lets edit the site language' do
|
||||
|
||||
Reference in New Issue
Block a user