Skip to content

Commit ecdc73c

Browse files
authored
Merge pull request #5767 from nhsuk/consent-start-page-title
Include vaccination name(s) on parental consent start page title
2 parents 5f638a2 + 52a2349 commit ecdc73c

6 files changed

Lines changed: 18 additions & 6 deletions

File tree

app/views/parent_interface/consent_forms/start.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<%= h1 t("consent_forms.start.title"), size: "xl" %>
1+
<%= h1 t(@programmes.map(&:type).join("-"), scope: %i[consent_forms start title]), size: "xl" %>
22

33
<% @programmes.each do |programme| %>
44
<%= render "parent_interface/consent_forms/start/#{programme.type}" %>

config/locales/en.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,11 @@ en:
599599
personal_choice: Tell us why you don’t agree
600600
will_be_vaccinated_elsewhere: When and where will your child get their vaccination?
601601
start:
602-
title: Give or refuse consent for vaccinations
602+
title:
603+
flu: Give or refuse consent for your child’s flu vaccination
604+
hpv: Give or refuse consent for the HPV vaccination
605+
menacwy-td_ipv: Give or refuse consent for the MenACWY and Td/IPV vaccinations
606+
mmr: Give or refuse consent for an MMR catch-up vaccination
603607
dashboard:
604608
index:
605609
title: Home

spec/features/parental_consent_doubles_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ def when_i_go_to_the_consent_form
7373
end
7474

7575
def then_i_see_the_consent_form
76-
expect(page).to have_heading("Give or refuse consent for vaccinations")
76+
expect(page).to have_heading(
77+
"Give or refuse consent for the MenACWY and Td/IPV vaccinations"
78+
)
7779
expect(page).to have_heading("MenACWY")
7880
expect(page).to have_heading("Td/IPV")
7981
end

spec/features/parental_consent_flu_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ def when_i_go_to_the_consent_form
9292
end
9393

9494
def then_i_see_the_consent_form
95-
expect(page).to have_content("Give or refuse consent for vaccinations")
95+
expect(page).to have_content(
96+
"Give or refuse consent for your child’s flu vaccination"
97+
)
9698
end
9799

98100
def when_i_give_consent(nasal_spray:)

spec/features/parental_consent_mmr_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ def when_i_go_to_the_consent_form
6161
end
6262

6363
def then_i_see_the_consent_form
64-
expect(page).to have_content("Give or refuse consent for vaccinations")
64+
expect(page).to have_content(
65+
"Give or refuse consent for an MMR catch-up vaccination"
66+
)
6567
end
6668

6769
def when_i_give_consent(without_gelatine:)

spec/features/parental_consent_refused_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ def when_i_go_to_the_consent_form
4747
end
4848

4949
def then_i_see_the_start_page
50-
expect(page).to have_content("Give or refuse consent for vaccinations")
50+
expect(page).to have_content(
51+
"Give or refuse consent for the HPV vaccination"
52+
)
5153
end
5254

5355
def when_i_refuse_consent

0 commit comments

Comments
 (0)