This commit is contained in:
riggraz
2025-01-22 10:06:43 +01:00
parent 86e0657532
commit a712c97882

View File

@@ -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