Skip to content

Commit

Permalink
Merge pull request #1877 from sul-dlss/flaky-tests
Browse files Browse the repository at this point in the history
Fix flaky tests
  • Loading branch information
corylown authored Sep 9, 2024
2 parents 1722b50 + 6d2e4bc commit e85d017
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/features/contextual_date_sort_message_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@
within '#content' do
expect(page).to have_no_css '.date-sort-message'
end
# Quit the session so that the other tests can show the alert again
Capybara.current_session.driver.quit
end
# rubocop:enable RSpec/ExampleLength
end
2 changes: 2 additions & 0 deletions spec/features/contextual_result_message_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,7 @@
within '#content' do
expect(page).to have_no_css '.alert.alert-info', text: 'You might see more results for your query'
end
# Quit the session so that the other tests can show the alert again
Capybara.current_session.driver.quit
end
end

0 comments on commit e85d017

Please sign in to comment.