From 14e9e4b79d26f30613c25c569d4d73d951332615 Mon Sep 17 00:00:00 2001 From: mahmudh Date: Tue, 31 Jul 2018 16:59:27 +0100 Subject: [PATCH] Fix inconsistent test in for variant A on AB test --- test/integration/content_pages_navigation_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/content_pages_navigation_test.rb b/test/integration/content_pages_navigation_test.rb index bc92a0a1a..308bbf25f 100644 --- a/test/integration/content_pages_navigation_test.rb +++ b/test/integration/content_pages_navigation_test.rb @@ -64,7 +64,7 @@ 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 @@ -72,7 +72,7 @@ class ContentPagesNavigationTest < ActionDispatch::IntegrationTest 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