Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user research banner for One Login #1599

Merged
merged 1 commit into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions app/views/subscriber_authentication/sign_in.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<% content_for :title, t("subscriber_authentication.sign_in.heading") %>

<div class="govuk-width-container">
<%= render "govuk_publishing_components/components/intervention", {
suggestion_text: "Help improve GOV.UK",
suggestion_link_text: "Take part in user research",
suggestion_link_url: "https://surveys.publishing.service.gov.uk/s/4J4QD4/",
new_tab: true,
} %>
</div>

<%= render "govuk_publishing_components/components/heading", {
text: t("subscriber_authentication.sign_in.heading"),
heading_level: 1,
Expand Down
7 changes: 7 additions & 0 deletions spec/controllers/subscriber_authentication_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@
get :sign_in
expect(response.body).to include(%(action="#{verify_subscriber_path}"))
end

it "displays Recruitment Banner" do
get :sign_in

expect(response.body).to include('href="https://surveys.publishing.service.gov.uk/s/4J4QD4/"')
expect(response.body).to include("Take part in user research (opens in a new tab)")
end
end
end

Expand Down