Skip to content

Commit

Permalink
test: update MP data test to verify mobile number to start with +44
Browse files Browse the repository at this point in the history
  • Loading branch information
KrupaPammi committed Oct 19, 2023
1 parent 8d5418d commit 53dcb97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playwright/tests/submit/marketingPreferencesData.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ test.describe('Marketing preferences data @sanity @nightly-sanity', () => {
expect(data.permissionphone).toEqual('1');
expect(data.permissionpost).toEqual('1');
expect(data.phone).toEqual(phone);
expect(data.mobile).toEqual(mobile);
// replace leading zero with '+44' to match UK normalized numbers in Data-Models);
expect(data.mobile).toEqual(mobile.replace(/^[07]{1}/, '+44'));
});
await page.close();
});
Expand Down

0 comments on commit 53dcb97

Please sign in to comment.