Skip to content

Commit 443ba21

Browse files
Remove the research banner
1 parent 07d4dbc commit 443ba21

File tree

3 files changed

+1
-56
lines changed

3 files changed

+1
-56
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
module ContentItem
22
module RecruitmentBanner
3-
SURVEY_URL = "https://surveys.publishing.service.gov.uk/s/SNFVW1/".freeze
4-
SURVEY_URL_MAPPINGS = {
5-
"/log-in-register-hmrc-online-services" => SURVEY_URL,
6-
"/log-in-file-self-assessment-tax-return" => SURVEY_URL,
7-
"/self-assessment-tax-returns" => SURVEY_URL,
8-
"/pay-self-assessment-tax-bill" => SURVEY_URL,
9-
"/contact-hmrc" => SURVEY_URL,
10-
"/log-in-register-hmrc-online-services/register" => SURVEY_URL,
11-
"/dbs-update-service" => SURVEY_URL,
12-
"/government/organisations/hm-revenue-customs/contact/self-assessment" => SURVEY_URL,
13-
}.freeze
14-
153
BENEFITS_SURVEY_URL = "https://signup.take-part-in-research.service.gov.uk/home?utm_campaign=Content_History&utm_source=Hold_gov_to_account&utm_medium=gov.uk&t=GDS&id=16".freeze
164
BENEFITS_SURVEY_URL_MAPPINGS = {
175
"/disability-living-allowance-children" => BENEFITS_SURVEY_URL,
@@ -31,18 +19,9 @@ module RecruitmentBanner
3119
"/benefits-calculators" => BENEFITS_SURVEY_URL,
3220
}.freeze
3321

34-
def recruitment_survey_url
35-
user_research_test_url
36-
end
37-
3822
def benefits_recruitment_survey_url
3923
key = content_item["base_path"]
4024
BENEFITS_SURVEY_URL_MAPPINGS[key]
4125
end
42-
43-
def user_research_test_url
44-
key = content_item["base_path"]
45-
SURVEY_URL_MAPPINGS[key]
46-
end
4726
end
4827
end

app/views/layouts/application.html.erb

+1-10
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,7 @@
2929
<% end %>
3030
<% end %>
3131

32-
<% if @content_item.recruitment_survey_url %>
33-
<div class="govuk-!-static-margin-top-4">
34-
<%= render "govuk_publishing_components/components/intervention", {
35-
suggestion_text: "Help improve a new GOV.UK tool",
36-
suggestion_link_text: "Sign up to take part in user research",
37-
suggestion_link_url: @content_item.recruitment_survey_url,
38-
new_tab: true,
39-
} %>
40-
</div>
41-
<% elsif @content_item.benefits_recruitment_survey_url %>
32+
<% if @content_item.benefits_recruitment_survey_url %>
4233
<div class="govuk-!-static-margin-top-4">
4334
<%= render "govuk_publishing_components/components/intervention", {
4435
suggestion_text: "Help improve GOV.UK",

test/integration/recruitment_banner_test.rb

-25
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,6 @@
11
require "test_helper"
22

33
class RecruitmentBannerTest < ActionDispatch::IntegrationTest
4-
test "User research banner is displayed on pages of interest" do
5-
guide = GovukSchemas::Example.find("guide", example_name: "guide")
6-
7-
pages_of_interest =
8-
[
9-
"/log-in-register-hmrc-online-services",
10-
"/log-in-file-self-assessment-tax-return",
11-
"/self-assessment-tax-returns",
12-
"/pay-self-assessment-tax-bill",
13-
"/contact-hmrc",
14-
"/log-in-register-hmrc-online-services/register",
15-
"/dbs-update-service",
16-
"/government/organisations/hm-revenue-customs/contact/self-assessment",
17-
]
18-
19-
pages_of_interest.each do |path|
20-
guide["base_path"] = path
21-
stub_content_store_has_item(guide["base_path"], guide.to_json)
22-
visit guide["base_path"]
23-
24-
assert page.has_css?(".gem-c-intervention")
25-
assert page.has_link?("Sign up to take part in user research", href: "https://surveys.publishing.service.gov.uk/s/SNFVW1/")
26-
end
27-
end
28-
294
test "Benefits user research banner is displayed on pages of interest" do
305
guide = GovukSchemas::Example.find("guide", example_name: "guide")
316

0 commit comments

Comments
 (0)