Skip to content

Commit 14e9e4b

Browse files
committed
Fix inconsistent test in for variant A on AB test
1 parent 6c16a66 commit 14e9e4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/content_pages_navigation_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ class ContentPagesNavigationTest < ActionDispatch::IntegrationTest
6464
setup_sidebar_variant_a
6565

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

7070
test "ContentPagesNav variant B hides sidebar" do
7171
stub_rummager
7272
setup_sidebar_variant_b
7373

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

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

0 commit comments

Comments
 (0)