Skip to content

Commit

Permalink
Update survey links
Browse files Browse the repository at this point in the history
For pages tagged to browse/tax and browse/business
  • Loading branch information
hannako committed Mar 25, 2022
1 parent f00bc70 commit 84f2cd2
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://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,
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://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
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://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
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://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

0 comments on commit 84f2cd2

Please sign in to comment.