From 4b9eb440f4e4d98610bdeb49ae1ab791d29eda89 Mon Sep 17 00:00:00 2001 From: Andrew Kvalheim Date: Tue, 8 Mar 2022 16:26:29 -0800 Subject: [PATCH] Partially revert "Skip some failing specs..." This reverts the changes to `spec/features/versions_spec.rb` made in commit b688d353ac7db7e1070436354b968bf2a503da2c, except for the change that was proposed in issue #2703. --- spec/features/versions_spec.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spec/features/versions_spec.rb b/spec/features/versions_spec.rb index e76baa5c..bc1ebf89 100644 --- a/spec/features/versions_spec.rb +++ b/spec/features/versions_spec.rb @@ -231,7 +231,7 @@ feature 'Version' do expect(page).to have_text("Someone (probably via the console) deleted difficulty level Expert with ID #{difficulty_level_id} in conference #{conference.short_title}") end - xscenario 'display changes in splashpages', feature: true, versioning: true, js: true do + scenario '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' @@ -246,15 +246,16 @@ feature 'Version' do check('Display the social media links?') check('Make splash page public?') click_button 'Save' + splashpage_id = conference.splashpage.id click_link 'Delete' page.accept_alert expect(page).to have_text('Splashpage was successfully destroyed') 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 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}") + expect(page).to have_text("#{organizer.name} created new splashpage with ID #{splashpage_id} 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 with ID #{splashpage_id} in conference #{conference.short_title}") + expect(page).to have_text("#{organizer.name} deleted splashpage with ID #{splashpage_id} in conference #{conference.short_title}") end scenario 'displays users subscribe/unsubscribe to conferences', feature: true, versioning: true, js: true do