From 84f2cd290e3dd7b563a0f6a86d02fa4790d7d904 Mon Sep 17 00:00:00 2001 From: hannako Date: Fri, 25 Mar 2022 12:15:47 +0000 Subject: [PATCH] Update survey links For pages tagged to browse/tax and browse/business --- app/presenters/content_item/recruitment_banner.rb | 2 +- test/integration/recruitment_banner_test.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/presenters/content_item/recruitment_banner.rb b/app/presenters/content_item/recruitment_banner.rb index 44be75c6c..efb137c8a 100644 --- a/app/presenters/content_item/recruitment_banner.rb +++ b/app/presenters/content_item/recruitment_banner.rb @@ -1,6 +1,6 @@ module ContentItem module RecruitmentBanner - SURVEY_URL_ONE = "https://GDSUserResearch.optimalworkshop.com/treejack/724268fr-1-0".freeze + SURVEY_URL_ONE = "https://GDSUserResearch.optimalworkshop.com/treejack/s46554q1".freeze SURVEY_URLS = { "/browse/tax" => SURVEY_URL_ONE, "/browse/business" => SURVEY_URL_ONE, diff --git a/test/integration/recruitment_banner_test.rb b/test/integration/recruitment_banner_test.rb index efafaee7a..45e18358e 100644 --- a/test/integration/recruitment_banner_test.rb +++ b/test/integration/recruitment_banner_test.rb @@ -16,7 +16,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://GDSUserResearch.optimalworkshop.com/treejack/724268fr-1-0") + assert page.has_link?("Take part in user research (opens in a new tab)", href: "https://GDSUserResearch.optimalworkshop.com/treejack/s46554q1") end test "Recruitment Banner is displayed for any page tagged to Business and Self-employed" do @@ -34,7 +34,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://GDSUserResearch.optimalworkshop.com/treejack/724268fr-1-0") + assert page.has_link?("Take part in user research (opens in a new tab)", href: "https://GDSUserResearch.optimalworkshop.com/treejack/s46554q1") end test "Recruitment Banner is not displayed unless page is tagged to a topic of interest" do @@ -51,6 +51,6 @@ class RecruitmentBannerTest < ActionDispatch::IntegrationTest visit_with_cachebust guide["base_path"] assert_not page.has_css?(".gem-c-intervention") - assert_not page.has_link?("Take part in user research", href: "https://GDSUserResearch.optimalworkshop.com/treejack/724268fr-1-0") + assert_not page.has_link?("Take part in user research", href: "https://GDSUserResearch.optimalworkshop.com/treejack/s46554q1") end end