Skip to content

Commit

Permalink
Merge pull request #2706 from alphagov/update-col-banner
Browse files Browse the repository at this point in the history
[DO NOT MERGE] Update Cost of living survey link
  • Loading branch information
chao-xian authored Mar 8, 2023
2 parents 60d8db6 + 203e4b4 commit e0c26e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/presenters/content_item/cost_of_living_banner.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ContentItem
module CostOfLivingBanner
COST_OF_LIVING_SURVEY_URL = "https://surveys.publishing.service.gov.uk/s/XS2YWV/".freeze
COST_OF_LIVING_SURVEY_URL = "https://s.userzoom.com/m/MSBDMTQ3MVM0NCAg".freeze

SURVEY_URL_MAPPINGS = {
"/guidance/cost-of-living-payment" => COST_OF_LIVING_SURVEY_URL,
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

<% if @content_item.survey_url %>
<%= render "govuk_publishing_components/components/intervention", {
suggestion_text: "Help improve GOV.UK",
suggestion_text: "Help make GOV.UK better",
suggestion_link_text: "Take part in user research",
suggestion_link_url: @content_item.survey_url,
new_tab: true,
Expand Down
4 changes: 2 additions & 2 deletions test/integration/cost_of_living_banner_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class RecruitmentBannerTest < ActionDispatch::IntegrationTest
visit guide["base_path"]

assert page.has_css?(".gem-c-intervention")
assert page.has_link?("Take part in user research (opens in a new tab)", href: "https://surveys.publishing.service.gov.uk/s/XS2YWV/")
assert page.has_link?("Take part in user research (opens in a new tab)", href: "https://s.userzoom.com/m/MSBDMTQ3MVM0NCAg")
end
end

Expand All @@ -38,6 +38,6 @@ class RecruitmentBannerTest < ActionDispatch::IntegrationTest
visit guide["base_path"]

assert_not page.has_css?(".gem-c-intervention")
assert_not page.has_link?("Take part in user research (opens in a new tab)", href: "https://surveys.publishing.service.gov.uk/s/XS2YWV/")
assert_not page.has_link?("Take part in user research (opens in a new tab)", href: "https://s.userzoom.com/m/MSBDMTQ3MVM0NCAg")
end
end

0 comments on commit e0c26e4

Please sign in to comment.