Remove race condition in test of splash page versioning

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…'
This commit is contained in:
Andrew Kvalheim 2020-11-02 14:30:43 -08:00
parent ae98ac1430
commit ab623daca9

View file

@ -250,6 +250,7 @@ feature 'Version' do
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}")