Skip to content

Commit

Permalink
AUT-2797: Combine form label with final instruction
Browse files Browse the repository at this point in the history
Change requested by UCD to prevent duplicated adjacent content
(i.e. "4. Enter the code" followed by a "Enter the code" label)
  • Loading branch information
gtvj committed Jun 7, 2024
1 parent ad4e4b0 commit a085230
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,9 @@ describe("Integration::enter phone number", () => {
phoneNumber: "07738394991",
})
.expect((res) => {
res.text.includes("You asked to resend the code too many times");
res.text.includes(
"You asked to resend the security code too many times"
);
})
.expect((res) => {
res.text.includes("You will not be able to continue for 2 hours.");
Expand Down
1 change: 0 additions & 1 deletion src/components/setup-authenticator-app/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
}) }}

<p class="govuk-body">{{ 'pages.setupAuthenticatorApp.step3' | translate }}</p>
<p class="govuk-body">{{ 'pages.setupAuthenticatorApp.step4' | translate }}</p>

<form id="form-tracking" method="post" novalidate="novalidate">

Expand Down
3 changes: 1 addition & 2 deletions src/locales/cy/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -2289,9 +2289,8 @@
"paragraph3": "Mae rhai apiau dilysydd yn galw’r allwedd gyfrinachol yn ‘cod’."
},
"step3": "3. Bydd yr ap dilysydd yn dangos cod diogelwch.",
"step4": "4. Rhowch y cod.",
"code": {
"label": "Cod",
"label": "4. Rhowch y cod.",
"hintText": "Dyma’r rhif 6-digid a ddangosir yn eich ap dilysydd",
"validationError": {
"required": "Rhowch y cod a dangosir yn eich ap dilysydd",
Expand Down
3 changes: 1 addition & 2 deletions src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -2289,9 +2289,8 @@
"paragraph3": "Some authenticator apps call the secret key a ‘code’."
},
"step3": "3. The authenticator app will show a security code.",
"step4": "4. Enter the code.",
"code": {
"label": "Code",
"label": "4. Enter the code.",
"hintText": "This is the 6-digit number shown in your authenticator app",
"validationError": {
"required": "Enter the code shown in your authenticator app",
Expand Down

0 comments on commit a085230

Please sign in to comment.