From ab623daca9829d144e0b8fae327d2480c67d87e8 Mon Sep 17 00:00:00 2001 From: Andrew Kvalheim Date: Mon, 2 Nov 2020 14:30:43 -0800 Subject: [PATCH] Remove race condition in test of splash page versioning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves: $ rspec spec/features/versions_spec.rb:234 … Failures: 1) Version display changes in splashpages Failure/Error: expect(page).to have_text("#{organizer.name} created new splashpage with ID #{splashpage_id} in conference #{conference.short_title}") expected to find text "name50 created new splashpage with ID 1 in conference yvXgaw" in "…name50 created new splashpage in conference yvXgaw less than a minute ago…' --- spec/features/versions_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/features/versions_spec.rb b/spec/features/versions_spec.rb index 655d8322d9..02fd263940 100644 --- a/spec/features/versions_spec.rb +++ b/spec/features/versions_spec.rb @@ -250,6 +250,7 @@ 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 with ID #{splashpage_id} in conference #{conference.short_title}")