Skip to content

Commit a0f654e

Browse files
authored
PYIC-8987: Update re-use page (#2811)
2 parents 56d1e28 + dca1af4 commit a0f654e

7 files changed

Lines changed: 26 additions & 40 deletions

File tree

browser-tests/functional-tests/functional.spec.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ test.describe.parallel("Functional tests", () => {
132132
);
133133

134134
const reuseIdentityPageHeaderLocator = await page.getByRole("heading", {
135-
name: "You have already proved your identity",
135+
name: "Confirm your details",
136136
});
137137
await expect(reuseIdentityPageHeaderLocator).toBeVisible();
138138

@@ -179,9 +179,7 @@ test.describe.parallel("Functional tests", () => {
179179
getAuthoriseUrlForJourney("reuseJourneyKennethDecerqueira"),
180180
);
181181

182-
await page
183-
.getByRole("heading", { name: "If your details are wrong" })
184-
.click();
182+
await page.getByText("If your details are wrong").click();
185183
await page.getByRole("link", { name: "update your details" }).click();
186184

187185
// Check we are on the update-details page
@@ -222,9 +220,7 @@ test.describe.parallel("Functional tests", () => {
222220
getAuthoriseUrlForJourney("reuseJourneyKennethDecerqueira"),
223221
);
224222

225-
await page
226-
.getByRole("heading", { name: "If your details are wrong" })
227-
.click();
223+
await page.getByText("If your details are wrong").click();
228224
await page.getByRole("link", { name: "update your details" }).click();
229225

230226
await page.click("input[value='givenNames']");
-13.8 KB
Loading
-15.3 KB
Loading

locales/check-translations.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// When it is run it generates translation-inconsistencies.json if there are any issues with the translation files. This
44
// includes:
55
// - Inconsistent translations from English to Welsh
6+
// - Translation text that isn't used on any pages
67
// - Mismatched entries in the English and Welsh files
78
// - Any untranslated text is put into a form suitable for sending to the translation team
89
//

locales/cy/translation.json

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -779,24 +779,21 @@
779779
}
780780
},
781781
"pageIpvReuse": {
782-
"title": "Rydych wedi profi pwy ydych chi yn barod",
783-
"header": "Rydych wedi profi pwy ydych chi yn barod",
784-
"content": {
785-
"paragraph1": "Rydych eisoes wedi profi eich hunaniaeth gyda GOV.UK One Login. Byddech wedi gwneud hyn ar-lein neu’n bersonol yn Swyddfa’r Post.",
786-
"paragraph2": "Gallwch nawr barhau i’r gwasanaeth rydych angen ei ddefnyddio.",
787-
"subHeading": "Gwirio eich manylion",
788-
"paragraph3": "Fe wnaethoch gyflwyno’r manylion canlynol pan wnaethoch brofi eich hunaniaeth. Efallai y byddwch am wirio bod eich manylion yn dal yn gywir os nad ydych wedi mewngofnodi i GOV.UK One Login ers peth amser.",
789-
"paragraph4": "Efallai y bydd rhai o’r manylion hyn yn cael eu defnyddio i lenwi’r ffurflenni yn awtomatig yn y gwasanaeth rydych angen ei ddefnyddio.",
790-
"subHeading2": "Eich manylion",
782+
"title": "Cadarnhau eich manylion",
783+
"header": "Cadarnhau eich manylion",
784+
"content": {
785+
"paragraph1": "Rydych wedi cwblhau eich gwiriad hunaniaeth ar-lein neu mewn Swyddfa’r Post gan ddefnyddio’r manylion hyn:",
791786
"userDetailsInformation": {
792787
"fullName": "Enw llawn",
793788
"dateOfBirth": "Dyddiad geni",
794789
"currentAddress": "Cyfeiriad cartref presennol"
795790
},
791+
"paragraph2": "Efallai y bydd rhai o’r manylion hyn yn cael eu defnyddio i lenwi’r ffurflenni yn awtomatig yn y gwasanaeth rydych angen ei ddefnyddio.",
796792
"updateUserDetailsInformation": {
797793
"updateDetailsLabel": "Os yw eich manylion yn anghywir",
798-
"updateDetailsHtml": "<h4 class=\"govuk-heading-s\">Os yw’ch manylion wedi newid</h4> <p class=\"govuk-body\">Mae eich prawf hunaniaeth yn dal yn ddilys hyd yn oed os yw’ch manylion wedi newid.</p><p class=\"govuk-body\">Nid oes angen i chi ddiweddaru’ch manylion i barhau â’r gwasanaeth rydych angen ei ddefnyddio.</p><p class=\"govuk-body\"> Pan fyddwch yn parhau, bydd GOV.UK One Login yn rhannu eich manylion sydd wedi’u harbed gyda’r gwasanaeth.</p><p class=\"govuk-body\"> Os oes angen, gallwch <a class=\"govuk-link\" href=\"/ipv/journey/page-ipv-reuse/update-details\" rel=\"noopener noreferrer\">ddiweddaru eich manylion</a>.</p> <h4 class=\"govuk-heading-s\"> Os oes camgymeriad yn eich enw</h4> <p class=\"govuk-body\"> <a class=\"govuk-link\" target=\"_blank\" rel=\"noopener noreferrer\" href=\"{{url}}\">Cysylltu â’r tîm GOV.UK One Login (agor mewn tab newydd)</a> os oes camgymeriad yn eich enw. Er enghraifft, os yw’ch enw gyda llythrennau ar goll neu gysylltnod.</p><p class=\"govuk-body\"> Peidiwch â cheisio diweddaru eich manylion na phrofi eich hunaniaeth eto oni bai bod tîm GOV.UK One Login wedi dweud wrthych i wneud hynny.</p> "
799-
}
794+
"updateDetailsHtml": "<p class=\"govuk-heading-s\">Os yw’ch manylion wedi newid</p> <p class=\"govuk-body\">Mae eich prawf hunaniaeth yn dal yn ddilys hyd yn oed os yw’ch manylion wedi newid.</p><p class=\"govuk-body\">Nid oes angen i chi ddiweddaru’ch manylion i barhau â’r gwasanaeth rydych angen ei ddefnyddio.</p><p class=\"govuk-body\"> Pan fyddwch yn parhau, bydd GOV.UK One Login yn rhannu eich manylion sydd wedi’u harbed gyda’r gwasanaeth.</p><p class=\"govuk-body\"> Os oes angen, gallwch <a class=\"govuk-link\" href=\"/ipv/journey/page-ipv-reuse/update-details\" rel=\"noopener noreferrer\">ddiweddaru eich manylion</a>.</p> <p class=\"govuk-heading-s\"> Os oes camgymeriad yn eich enw</p> <p class=\"govuk-body\"> <a class=\"govuk-link\" target=\"_blank\" rel=\"noopener noreferrer\" href=\"{{url}}\">Cysylltu â’r tîm GOV.UK One Login (agor mewn tab newydd)</a> os oes camgymeriad yn eich enw. Er enghraifft, os yw’ch enw gyda llythrennau ar goll neu gysylltnod.</p><p class=\"govuk-body\"> Peidiwch â cheisio diweddaru eich manylion na phrofi eich hunaniaeth eto oni bai bod tîm GOV.UK One Login wedi dweud wrthych i wneud hynny.</p> "
795+
},
796+
"continueButton": "Cadarnhau a pharhau"
800797
}
801798
},
802799
"pageIpvPending": {

locales/en/translation.json

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -796,24 +796,21 @@
796796
}
797797
},
798798
"pageIpvReuse": {
799-
"title": "You have already proved your identity",
800-
"header": "You have already proved your identity",
801-
"content": {
802-
"paragraph1": "You have already proved your identity with GOV.UK One Login. You would have done this online or in person at the Post Office.",
803-
"paragraph2": "You can now continue to the service you need to use.",
804-
"subHeading": "Check your details",
805-
"paragraph3": "You submitted the following details when you proved your identity. You might want to check your details are still correct if you’ve not signed in to GOV.UK One Login in a while.",
806-
"paragraph4": "Some of these details might be used to automatically fill in the forms within the service you need to use.",
807-
"subHeading2": "Your details",
799+
"title": "Confirm your details",
800+
"header": "Confirm your details",
801+
"content": {
802+
"paragraph1": "You completed your identity check online or at a Post Office using these details:",
808803
"userDetailsInformation": {
809804
"fullName": "Full name",
810805
"dateOfBirth": "Date of birth",
811806
"currentAddress": "Current home address"
812807
},
808+
"paragraph2": "Some of these details might be used to automatically fill in the forms within the service you need to use.",
813809
"updateUserDetailsInformation": {
814810
"updateDetailsLabel": "If your details are wrong",
815-
"updateDetailsHtml": "<h4 class=\"govuk-heading-s\">If your details have changed</h4> <p class=\"govuk-body\">Your proof of identity is still valid even if your details have changed.</p><p class=\"govuk-body\"> You do not need to update your details to continue to the service you need to use.</p><p class=\"govuk-body\"> When you continue, GOV.UK One Login will share your saved details with the service. </p><p class=\"govuk-body\"> If you need to, you can <a class=\"govuk-link\" href=\"/ipv/journey/page-ipv-reuse/update-details\" rel=\"noopener noreferrer\">update your details</a>.</p> <h4 class=\"govuk-heading-s\"> If there is a mistake in your name</h4> <p class=\"govuk-body\"> <a class=\"govuk-link\" target=\"_blank\" rel=\"noopener noreferrer\" href=\"{{url}}\">Contact the GOV.UK One Login team (opens in new tab)</a> if there is a mistake in your name. For example, if your name is missing letters or a hyphen.</p><p class=\"govuk-body\"> Do not try to update your details or prove your identity again unless the GOV.UK One Login team has told you to.</p>"
816-
}
811+
"updateDetailsHtml": "<p class=\"govuk-heading-s\">If your details have changed</p> <p class=\"govuk-body\">Your proof of identity is still valid even if your details have changed.</p><p class=\"govuk-body\"> You do not need to update your details to continue to the service you need to use.</p><p class=\"govuk-body\"> When you continue, GOV.UK One Login will share your saved details with the service. </p><p class=\"govuk-body\"> If you need to, you can <a class=\"govuk-link\" href=\"/ipv/journey/page-ipv-reuse/update-details\" rel=\"noopener noreferrer\">update your details</a>.</p> <p class=\"govuk-heading-s\"> If there is a mistake in your name</p> <p class=\"govuk-body\"> <a class=\"govuk-link\" target=\"_blank\" rel=\"noopener noreferrer\" href=\"{{url}}\">Contact the GOV.UK One Login team (opens in new tab)</a> if there is a mistake in your name. For example, if your name is missing letters or a hyphen.</p><p class=\"govuk-body\"> Do not try to update your details or prove your identity again unless the GOV.UK One Login team has told you to.</p>"
812+
},
813+
"continueButton": "Confirm and continue"
817814
}
818815
},
819816
"pageIpvPending": {

views/ipv/page/page-ipv-reuse.njk

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@
1414
<h1 class="govuk-heading-l" id="header"
1515
data-page="{{ googleTagManagerPageId }}">{{ 'pages.pageIpvReuse.header' | translate }}</h1>
1616
<p class="govuk-body">{{ 'pages.pageIpvReuse.content.paragraph1' | translate }}</p>
17-
<p class="govuk-body">{{ 'pages.pageIpvReuse.content.paragraph2' | translate }}</p>
18-
19-
<h2 class="govuk-heading-m">{{ 'pages.pageIpvReuse.content.subHeading' | translate }}</h2>
20-
<p class="govuk-body">{{ 'pages.pageIpvReuse.content.paragraph3' | translate }}</p>
21-
<p class="govuk-body">{{ 'pages.pageIpvReuse.content.paragraph4' | translate }}</p>
22-
23-
<h3 class="govuk-heading-s">{{ 'pages.pageIpvReuse.content.subHeading2' | translate }}</h3>
2417

2518
{% set rows = [
2619
{
@@ -55,11 +48,13 @@
5548
rows: rows
5649
}) }}
5750

51+
<p class="govuk-body">{{ 'pages.pageIpvReuse.content.paragraph2' | translate }}</p>
52+
5853
<details class="govuk-details">
5954
<summary class="govuk-details__summary">
60-
<h3 class="govuk-!-margin-0 govuk-!-font-size-19 govuk-!-font-weight-regular govuk-details__summary-text">
55+
<p class="govuk-!-margin-0 govuk-details__summary-text">
6156
{{ 'pages.pageIpvReuse.content.updateUserDetailsInformation.updateDetailsLabel' | translate }}
62-
</h3>
57+
</p>
6358
</summary>
6459
<div class="govuk-details__text">
6560
{{ 'pages.pageIpvReuse.content.updateUserDetailsInformation.updateDetailsHtml' | translate({ url: contactUsUrl }) | safe }}
@@ -75,12 +70,12 @@
7570
translations: translations.translation.progressButton,
7671
href: "/ipv/journey/" + pageId + "/next",
7772
errorPage: '/ipv/page/pyi-technical?spinnerTimeout',
78-
text: ('general.buttons.continueToService' | translate),
73+
text: ('pages.pageIpvReuse.content.continueButton' | translate),
7974
customDevErrorTimeout: customTimeout
8075
}) }}
8176
{% else %}
8277
{# Original button (control) #}
83-
{{ journeyNextForm(pageId, csrfToken, 'general.buttons.continueToService' | translate ) }}
78+
{{ journeyNextForm(pageId, csrfToken, 'pages.pageIpvReuse.content.continueButton' | translate ) }}
8479
{% endif %}
8580

8681
{% endblock %}

0 commit comments

Comments
 (0)