Skip to content

Commit

Permalink
Use release 0.2.0 of the banner gem
Browse files Browse the repository at this point in the history
This release will include the configuration removed in the previous commit.
alphagov/govuk_web_banners#28
  • Loading branch information
hannako committed Dec 10, 2024
1 parent 4898879 commit 2185f5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions test/integration/recruitment_banner_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 2185f5f

Please sign in to comment.