diff --git a/spec/features/contextual_date_sort_message_spec.rb b/spec/features/contextual_date_sort_message_spec.rb index b35e0ba7..4869d372 100644 --- a/spec/features/contextual_date_sort_message_spec.rb +++ b/spec/features/contextual_date_sort_message_spec.rb @@ -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 diff --git a/spec/features/contextual_result_message_spec.rb b/spec/features/contextual_result_message_spec.rb index c0045701..812bb170 100644 --- a/spec/features/contextual_result_message_spec.rb +++ b/spec/features/contextual_result_message_spec.rb @@ -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