Skip to content

Commit

Permalink
Merge pull request #1011 from alphagov/fix-flakey-variant-a-test
Browse files Browse the repository at this point in the history
Fix inconsistent test for variant A on AB test
  • Loading branch information
sihugh authored Jul 31, 2018
2 parents 6c16a66 + 14e9e4b commit bfd1176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/content_pages_navigation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ class ContentPagesNavigationTest < ActionDispatch::IntegrationTest
setup_sidebar_variant_a

setup_and_visit_content_from_publishing_app(publishing_app: 'publisher')
assert page.has_css?('.gem-c-related-navigation__main-heading', text: 'Related content')
assert page.has_css?('.gem-c-contextual-sidebar')
end

test "ContentPagesNav variant B hides sidebar" do
stub_rummager
setup_sidebar_variant_b

setup_and_visit_content_from_publishing_app(publishing_app: 'whitehall')
refute page.has_css?('.gem-c-related-navigation__main-heading', text: 'Related content')
refute page.has_css?('.gem-c-contextual-sidebar')
end

test "shows the Services section title and documents with tracking" do
Expand Down

0 comments on commit bfd1176

Please sign in to comment.