From 2185f5f06767531c6b0486bce9d2db2576734b51 Mon Sep 17 00:00:00 2001 From: Jessica Jones Date: Tue, 10 Dec 2024 13:18:59 +0000 Subject: [PATCH] Use release 0.2.0 of the banner gem This release will include the configuration removed in the previous commit. https://github.com/alphagov/govuk_web_banners/pull/28 --- Gemfile.lock | 2 +- test/integration/recruitment_banner_test.rb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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