Skip to content

Commit

Permalink
Update Tree test survey link
Browse files Browse the repository at this point in the history
  • Loading branch information
AgaDufrat committed Aug 9, 2022
1 parent 1555805 commit 4a61858
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
TREE_TEST_URL = "https://GDSUserResearch.optimalworkshop.com/treejack/b3cu012d".freeze
TREE_TEST_URL = "https://GDSUserResearch.optimalworkshop.com/treejack/8f1yr1fj".freeze
TREE_TEST_PAGE = "/browse/working".freeze
TREE_TEST_MAPPINGS = { TREE_TEST_PAGE => TREE_TEST_URL }.freeze

Expand Down
4 changes: 2 additions & 2 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/b3cu012d")
assert page.has_link?("Take part in user research (opens in a new tab)", href: "https://GDSUserResearch.optimalworkshop.com/treejack/8f1yr1fj")
end

test "Tree test recruitment banner is not displayed unless page is tagged to a topic of interest" do
Expand All @@ -33,7 +33,7 @@ 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/b3cu012d")
assert_not page.has_link?("Take part in user research", href: "https://GDSUserResearch.optimalworkshop.com/treejack/8f1yr1fj")
end

test "Visa test recruitment banner is displayed on pages of interest" do
Expand Down

0 comments on commit 4a61858

Please sign in to comment.