From 6f643070eae5982a9829d3abd6de931dda85f738 Mon Sep 17 00:00:00 2001 From: Bianca Severino Date: Thu, 10 Feb 2022 10:55:04 -0500 Subject: [PATCH] fix: change language referring to government ID --- src/account-settings/AccountSettingsPage.messages.jsx | 6 +++--- src/account-settings/name-change/messages.js | 4 ++-- .../name-change/test/NameChange.test.jsx | 10 +++++----- src/id-verification/IdVerification.messages.js | 10 +++++----- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/account-settings/AccountSettingsPage.messages.jsx b/src/account-settings/AccountSettingsPage.messages.jsx index 2c854f4..bf6cc0d 100644 --- a/src/account-settings/AccountSettingsPage.messages.jsx +++ b/src/account-settings/AccountSettingsPage.messages.jsx @@ -108,12 +108,12 @@ const messages = defineMessages({ }, 'account.settings.field.name.verified.help.text.verified': { id: 'account.settings.field.name.verified.help.text.verified', - defaultMessage: 'This name has been verified by government ID.', + defaultMessage: 'This name has been verified by photo ID.', description: 'Help text for the account settings verified name field when the name is verified.', }, 'account.settings.field.name.verified.help.text.certificate': { id: 'account.settings.field.name.verified.help.text.certificate', - defaultMessage: 'This name has been verified by government ID and selected to appear on your certificates and public-facing records.', + defaultMessage: 'This name has been verified by photo ID, and is selected to appear on your certificates and public-facing records.', description: 'Help text for the account settings verified name field when the name is selected for certificates.', }, 'account.settings.field.name.verified.help.text.submitted': { @@ -128,7 +128,7 @@ const messages = defineMessages({ }, 'account.settings.field.name.verified.verification.alert': { id: 'account.settings.field.name.verified.verification.help', - defaultMessage: 'Enter your name as it appears on your government-issued ID.', + defaultMessage: 'Enter your name as it appears on your unexpired student, work, or government-issued identification card.', description: 'Form label instructing the user to enter the name on their ID.', }, 'account.settings.field.full.name.help.text.submitted': { diff --git a/src/account-settings/name-change/messages.js b/src/account-settings/name-change/messages.js index 8160aa0..ef62af5 100644 --- a/src/account-settings/name-change/messages.js +++ b/src/account-settings/name-change/messages.js @@ -23,12 +23,12 @@ const messages = defineMessages({ }, 'account.settings.name.change.id.name.label': { id: 'account.settings.name.change.id.name.label', - defaultMessage: 'Enter your name as it appears on your government-issued ID.', + defaultMessage: 'Enter your name as it appears on your unexpired student, work, or government-issued identification card.', description: 'Form label instructing the user to enter the name on their ID.', }, 'account.settings.name.change.id.name.placeholder': { id: 'account.settings.name.change.id.name.placeholder', - defaultMessage: 'Enter the name on your government ID', + defaultMessage: 'Enter the name on your photo ID', description: 'Form label instructing the user to enter the name on their ID.', }, 'account.settings.name.change.error.valid.name': { diff --git a/src/account-settings/name-change/test/NameChange.test.jsx b/src/account-settings/name-change/test/NameChange.test.jsx index 8b81660..9b9e5ed 100644 --- a/src/account-settings/name-change/test/NameChange.test.jsx +++ b/src/account-settings/name-change/test/NameChange.test.jsx @@ -70,7 +70,7 @@ describe('NameChange', () => { afterEach(() => jest.clearAllMocks()); it('renders populated input after clicking continue if verified_name in form data', async () => { - const getInput = () => screen.queryByPlaceholderText('Enter the name on your government ID'); + const getInput = () => screen.queryByPlaceholderText('Enter the name on your photo ID'); render(reduxWrapper()); expect(getInput()).toBeNull(); @@ -82,7 +82,7 @@ describe('NameChange', () => { }); it('renders empty input after clicking continue if verified_name not in form data', async () => { - const getInput = () => screen.queryByPlaceholderText('Enter the name on your government ID'); + const getInput = () => screen.queryByPlaceholderText('Enter the name on your photo ID'); const formProps = { ...props, formValues: { @@ -112,7 +112,7 @@ describe('NameChange', () => { const continueButton = screen.getByText('Continue'); fireEvent.click(continueButton); - const input = screen.getByPlaceholderText('Enter the name on your government ID'); + const input = screen.getByPlaceholderText('Enter the name on your photo ID'); fireEvent.change(input, { target: { value: 'Verified Name' } }); const submitButton = screen.getByText('Continue'); @@ -139,7 +139,7 @@ describe('NameChange', () => { const continueButton = screen.getByText('Continue'); fireEvent.click(continueButton); - const input = screen.getByPlaceholderText('Enter the name on your government ID'); + const input = screen.getByPlaceholderText('Enter the name on your photo ID'); fireEvent.change(input, { target: { value: 'Verified Name' } }); const submitButton = screen.getByText('Continue'); @@ -155,7 +155,7 @@ describe('NameChange', () => { const continueButton = screen.getByText('Continue'); fireEvent.click(continueButton); - const input = screen.getByPlaceholderText('Enter the name on your government ID'); + const input = screen.getByPlaceholderText('Enter the name on your photo ID'); fireEvent.change(input, { target: { value: 'Verified Name' } }); const submitButton = screen.getByText('Continue'); diff --git a/src/id-verification/IdVerification.messages.js b/src/id-verification/IdVerification.messages.js index 513ce42..a76266a 100644 --- a/src/id-verification/IdVerification.messages.js +++ b/src/id-verification/IdVerification.messages.js @@ -498,17 +498,17 @@ const messages = defineMessages({ }, 'id.verification.name.check.instructions': { id: 'id.verification.name.check.instructions', - defaultMessage: 'Does the name below match the name on your government-issued ID? If not, update the name below to match your goverment-issued ID.', - description: 'Text to instruct the user to check that the name displayed on the page matches what is on their government-issued ID.', + defaultMessage: 'Does the name below match the name on your photo ID? If not, update the name below to match your photo ID.', + description: 'Text to instruct the user to check that the name displayed on the page matches what is on their photo ID.', }, 'id.verification.name.check.mismatch.information': { id: 'id.verification.name.check.mismatch.information', - defaultMessage: 'If the name below does not match your government-issued ID, your identity verification will be denied.', - description: 'Text to inform the user that if the name displayed on the page does not match what is on their government-issued ID, identity verification will be denied.', + defaultMessage: 'If the name below does not match your photo ID, your identity verification will be denied.', + description: 'Text to inform the user that if the name displayed on the page does not match what is on their photo ID, identity verification will be denied.', }, 'id.verification.name.error': { id: 'id.verification.name.error', - defaultMessage: 'Please enter your name as it appears on your government-issued ID.', + defaultMessage: 'Please enter your name as it appears on your photo ID.', description: 'Error that shows when the user needs to update their name to match the name on their ID.', }, 'id.verification.account.name.warning.prefix': {