From 4403f1149d58777632f4caac09c1bb5f5acc6cf4 Mon Sep 17 00:00:00 2001 From: Andrew Kvalheim Date: Sun, 6 Mar 2022 22:55:41 -0800 Subject: [PATCH] Update tests of splashpage forms The splashpage forms and default configuration changed in 81853d1ef91c2328e28ea676079428adbba33765. --- spec/features/versions_spec.rb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/spec/features/versions_spec.rb b/spec/features/versions_spec.rb index f246fb09..97cdb8ae 100644 --- a/spec/features/versions_spec.rb +++ b/spec/features/versions_spec.rb @@ -234,18 +234,18 @@ feature 'Version' do xscenario 'display changes in splashpages', feature: true, versioning: true, js: true do visit admin_conference_splashpage_path(conference.short_title) click_link 'Create Splashpage' - click_button 'Save Changes' + click_button 'Save' - click_link 'Edit' - uncheck('Display the program') - uncheck('Display call for papers and call for tracks, while open') - uncheck('Display the venue') - uncheck('Display tickets') - uncheck('Display the lodgings') - uncheck('Display sponsors') - uncheck('Display social media links') + click_link 'Configure' + check('Display the program?') + check('Display call for papers and call for tracks?') + check('Display the venue?') + check('Display the tickets?') + check('Display the lodgings?') + check('Display the sponsors?') + check('Display the social media links?') check('Make splash page public?') - click_button 'Save Changes' + click_button 'Save' click_link 'Delete' page.accept_alert @@ -253,7 +253,7 @@ feature 'Version' do visit admin_revision_history_path expect(page).to have_text("#{organizer.name} created new splashpage in conference #{conference.short_title}") - expect(page).to have_text("#{organizer.name} updated public, include program, include cfp, include venue, include tickets, include lodgings, include sponsors and include social media of splashpage in conference #{conference.short_title}") + expect(page).to have_text("#{organizer.name} updated public, include program, include social media, include venue, include tickets, include sponsors, include lodgings and include cfp of splashpage in conference #{conference.short_title}") expect(page).to have_text("#{organizer.name} deleted splashpage in conference #{conference.short_title}") end