Skip to content

Commit

Permalink
Merge pull request #2431 from alphagov/update_recruitment_banner
Browse files Browse the repository at this point in the history
Update survey URL in recruitment banner
  • Loading branch information
hannako authored Apr 28, 2022
2 parents ee9dcdc + 62d5832 commit 27cccb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/presenters/content_item/recruitment_banner.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ContentItem
module RecruitmentBanner
SURVEY_URL_ONE = "https://surveys.publishing.service.gov.uk/s/GY8Q11".freeze
SURVEY_URL_ONE = "https://GDSUserResearch.optimalworkshop.com/treejack/724268fr-1-0-0-0".freeze
SURVEY_URLS = {
"/browse/tax" => SURVEY_URL_ONE,
"/browse/business" => SURVEY_URL_ONE,
Expand Down
6 changes: 3 additions & 3 deletions test/integration/recruitment_banner_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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://surveys.publishing.service.gov.uk/s/GY8Q11")
assert page.has_link?("Take part in user research (opens in a new tab)", href: "https://GDSUserResearch.optimalworkshop.com/treejack/724268fr-1-0-0-0")
end

test "Recruitment Banner is displayed for any page tagged to Business and Self-employed" do
Expand All @@ -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://surveys.publishing.service.gov.uk/s/GY8Q11")
assert page.has_link?("Take part in user research (opens in a new tab)", href: "https://GDSUserResearch.optimalworkshop.com/treejack/724268fr-1-0-0-0")
end

test "Recruitment Banner is not displayed unless page is tagged to a topic of interest" do
Expand All @@ -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://surveys.publishing.service.gov.uk/s/GY8Q11")
assert_not page.has_link?("Take part in user research", href: "https://GDSUserResearch.optimalworkshop.com/treejack/724268fr-1-0-0-0")
end
end

0 comments on commit 27cccb3

Please sign in to comment.