File tree Expand file tree Collapse file tree
packages/fxa-settings/src/pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77# can stand alone as "{ -product-mozilla-account }"
88signin-token-code-heading-2 = Enter confirmation code<span> for your { -product-mozilla-account } </span>
99# { $email } represents the email that the user entered to sign in
10- signin-token-code-instruction = Enter the code that was sent to { $email } within 5 minutes.
10+ signin-token-code-instruction-v2 = Enter the code that was sent to <email> { $email } </email> within 5 minutes.
1111signin-token-code-input-label-v2 = Enter 6-digit code
1212# Form button to confirm if the confirmation code entered by the user is valid
1313signin-token-code-confirm-button = Confirm
Original file line number Diff line number Diff line change @@ -104,7 +104,10 @@ describe('SigninTokenCode page', () => {
104104 'Enter confirmation code for your Mozilla account'
105105 ) ;
106106 screen . getByText (
107- `Enter the code that was sent to ${ MOCK_EMAIL } within 5 minutes.`
107+ ( _ , element ) =>
108+ element ?. tagName === 'P' &&
109+ element ?. textContent ===
110+ `Enter the code that was sent to ${ MOCK_EMAIL } within 5 minutes.`
108111 ) ;
109112 screen . getByLabelText ( 'Enter 6-digit code' ) ;
110113 screen . getByRole ( 'button' , { name : 'Confirm' } ) ;
Original file line number Diff line number Diff line change @@ -228,9 +228,14 @@ const SigninTokenCode = ({
228228
229229 < EmailCodeImage />
230230
231- < FtlMsg id = "signin-token-code-instruction" vars = { { email } } >
231+ < FtlMsg
232+ id = "signin-token-code-instruction-v2"
233+ vars = { { email } }
234+ elems = { { email : < span className = "break-all" /> } }
235+ >
232236 < p id = "verification-email-message" className = "my-4 text-sm" >
233- Enter the code that was sent to { email } within 5 minutes.
237+ Enter the code that was sent to{ ' ' }
238+ < span className = "break-all" > { email } </ span > within 5 minutes.
234239 </ p >
235240 </ FtlMsg >
236241
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ confirm-signup-code-page-title = Enter confirmation code
1010# can stand alone as "{ -product-mozilla-account }"
1111confirm-signup-code-heading-2 = Enter confirmation code <span>for your { -product-mozilla-account } </span>
1212# { $email } represents the email that the user entered to sign in
13- confirm-signup-code-instruction = Enter the code that was sent to { $email } within 5 minutes.
13+ confirm-signup-code-instruction-v2 = Enter the code that was sent to <email> { $email } </email> within 5 minutes.
1414confirm-signup-code-input-label = Enter 6-digit code
1515# Form button to confirm if the confirmation code entered by the user is valid
1616confirm-signup-code-confirm-button = Confirm
Original file line number Diff line number Diff line change @@ -299,9 +299,14 @@ const ConfirmSignupCode = ({
299299
300300 < EmailCodeImage />
301301
302- < FtlMsg id = "confirm-signup-code-instruction" vars = { { email : email ! } } >
302+ < FtlMsg
303+ id = "confirm-signup-code-instruction-v2"
304+ vars = { { email : email ! } }
305+ elems = { { email : < span className = "break-all" /> } }
306+ >
303307 < p className = "mt-2 text-sm" >
304- Enter the code that was sent to { email } within 5 minutes.
308+ Enter the code that was sent to{ ' ' }
309+ < span className = "break-all" > { email } </ span > within 5 minutes.
305310 </ p >
306311 </ FtlMsg >
307312
You can’t perform that action at this time.
0 commit comments