Skip to content

Commit dae86e2

Browse files
authored
feat: ENG-2178: Update mobile field messaging (#374)
* Update copy * Update tests * feat: Amazon donation related mobile field updates
1 parent 8e6bf70 commit dae86e2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

cypress/integration/submit_spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ describe('e2e test', () => {
3737
cy.get('#field-input--mobile').type('sdf').clear().click();
3838
cy.get('#field-error--mobile>span').should('contain','Please fill in your mobile number');
3939
cy.get('#field-input--mobile').type('sdf');
40-
cy.get('#field-error--mobile>span').should('contain', 'Please enter a valid mobile phone number - it must be the same number that you used to make your donation.');
40+
cy.get('#field-error--mobile>span').should('contain', 'Please enter a valid mobile phone number - it must be the same number associated with your donation.');
4141
cy.get('#field-input--mobile').clear().type(faker.phone.phoneNumber('02########'));
42-
cy.get('#field-error--mobile>span').should('contain', 'Please enter a valid mobile phone number - it must be the same number that you used to make your donation.');
42+
cy.get('#field-error--mobile>span').should('contain', 'Please enter a valid mobile phone number - it must be the same number associated with your donation.');
4343
cy.get('#field-input--mobile').clear().type(faker.phone.phoneNumber('07#########'));
4444
cy.get('#field-error--mobile>span').should('not.exist')
4545
});

src/pages/GiftAid/SubmitForm/SubmitFormFields.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ export const submitFormFields = {
3333
label: 'Mobile number',
3434
required: true,
3535
pattern: '^07[0-9]{9}$',
36-
helpText: 'Enter the one you used for your text donation or called to donate on',
36+
helpText: 'Enter the one associated with your donation',
3737
emptyFieldErrorText: 'Please fill in your mobile number',
38-
invalidErrorText: 'Please enter a valid mobile phone number - it must be the same number that you used to make your donation.'
38+
invalidErrorText: 'Please enter a valid mobile phone number - it must be the same number associated with your donation.'
3939
},
4040
firstName: {
4141
id: 'firstname',

0 commit comments

Comments
 (0)