diff --git a/Gemfile.lock b/Gemfile.lock index 6c022c17b..69bbdce7c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -182,7 +182,7 @@ GEM capybara (>= 3.36) puma selenium-webdriver (>= 4.0) - govuk_web_banners (0.1.0) + govuk_web_banners (0.2.0) govuk_publishing_components rails (>= 7) hashdiff (1.1.1) diff --git a/test/integration/recruitment_banner_test.rb b/test/integration/recruitment_banner_test.rb index 88fcb14ce..4abf5d87b 100644 --- a/test/integration/recruitment_banner_test.rb +++ b/test/integration/recruitment_banner_test.rb @@ -24,8 +24,8 @@ class RecruitmentBannerTest < ActionDispatch::IntegrationTest stub_content_store_has_item(content_item["base_path"], content_item.to_json) visit content_item["base_path"] - assert_not page.has_css?(".gem-c-intervention") - assert_not page.has_link?("Sign up to take part in user research (opens in a new tab)", href: "https://survey.take-part-in-research.service.gov.uk/jfe/form/SV_2bggmg6xlelrO0S") + assert page.has_css?(".gem-c-intervention") + assert page.has_link?("Sign up to take part in user research (opens in a new tab)", href: "https://survey.take-part-in-research.service.gov.uk/jfe/form/SV_2bggmg6xlelrO0S") end end @@ -47,8 +47,8 @@ class RecruitmentBannerTest < ActionDispatch::IntegrationTest stub_content_store_has_item(content_item["base_path"], content_item.to_json) visit content_item["base_path"] - assert_not page.has_css?(".gem-c-intervention") - assert_not page.has_link?("Sign up to take part in user research (opens in a new tab)", href: "https://survey.take-part-in-research.service.gov.uk/jfe/form/SV_2bggmg6xlelrO0S") + assert page.has_css?(".gem-c-intervention") + assert page.has_link?("Sign up to take part in user research (opens in a new tab)", href: "https://survey.take-part-in-research.service.gov.uk/jfe/form/SV_2bggmg6xlelrO0S") end end