Skip to content

Commit

Permalink
Merge pull request #2345 from alphagov/fix-flakey-integration-tests
Browse files Browse the repository at this point in the history
Fix integration tests
  • Loading branch information
mtaylorgds committed Sep 25, 2024
2 parents 5a98477 + ab8dadb commit a1df8c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/integration/edition_workflow_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class EditionWorkflowTest < LegacyJavascriptIntegrationTest

test_strategy = Flipflop::FeatureSet.current.test!
test_strategy.switch!(:design_system_publications_filter, false)
test_strategy.switch!(:design_system_edit, false)
end

teardown do
Expand Down
5 changes: 5 additions & 0 deletions test/legacy_integration_test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ class LegacyIntegrationTest < ActionDispatch::IntegrationTest
include CapybaraSelect2::Helpers
include Warden::Test::Helpers

setup do
test_strategy = Flipflop::FeatureSet.current.test!
test_strategy.switch!(:design_system_edit, false)
end

teardown do
Capybara.reset_sessions! # Forget the (simulated) browser state
Capybara.use_default_driver # Revert Capybara.current_driver to Capybara.default_driver
Expand Down

0 comments on commit a1df8c9

Please sign in to comment.