Skip to content

Commit

Permalink
Fix inconsistent test in for variant A on AB test
Browse files Browse the repository at this point in the history
  • Loading branch information
MahmudH committed Jul 31, 2018
1 parent 6c16a66 commit 14e9e4b
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 14e9e4b

Please sign in to comment.