diff --git a/tests/e2e/Digv2/ComplexFields/EmbeddedData.spec.js b/tests/e2e/Digv2/ComplexFields/EmbeddedData.spec.js index ec978c043..54cf7db82 100644 --- a/tests/e2e/Digv2/ComplexFields/EmbeddedData.spec.js +++ b/tests/e2e/Digv2/ComplexFields/EmbeddedData.spec.js @@ -127,7 +127,8 @@ test.describe('E2E test', () => { await phone.locator('button').click(); /** Selecting the country code */ await page.locator('text=United States+1 >> nth=0').click(); - await phone.locator('input').fill('6175551212'); + await phone.locator('input').click(); + await phone.locator('input').pressSequentially('6175551212'); /** Creating second row by clicking on `+Add` button */ await page.locator('a:has-text("+ Add")').click(); @@ -142,7 +143,8 @@ test.describe('E2E test', () => { await phone.locator('button').click(); /** Selecting the country code */ await page.locator('text=United States+1 >> nth=0').click(); - await phone.locator('input').fill('6175451212'); + await phone.locator('input').click(); + await phone.locator('input').pressSequentially('6175451212'); await page.locator('button:has-text("Next")').click(); @@ -239,7 +241,8 @@ test.describe('E2E test', () => { await phone.locator('button').click(); /** Selecting the country code */ await page.locator('text=United States+1 >> nth=0').click(); - await phone.locator('input').fill('6175551212'); + await phone.locator('input').click(); + await phone.locator('input').pressSequentially('6175551212'); const country = modal.locator('div[data-test-id="59716c97497eb9694541f7c3d37b1a4d"]'); await country.click(); @@ -332,7 +335,8 @@ test.describe('E2E test', () => { await phone.locator('button').click(); /** Selecting the country code */ await page.locator('text=United States+1 >> nth=0').click(); - await phone.locator('input').fill('6175551212'); + await phone.locator('input').click(); + await phone.locator('input').pressSequentially('6175551212'); let countryName = page.locator('div[data-test-id="59716c97497eb9694541f7c3d37b1a4d"]'); await countryName.click(); @@ -351,7 +355,8 @@ test.describe('E2E test', () => { await phone.locator('button').click(); /** Selecting the country code */ await page.locator('text=United States+1 >> nth=0').click(); - await phone.locator('input').fill('6175451212'); + await phone.locator('input').click(); + await phone.locator('input').pressSequentially('6175451212'); countryName = page.locator('div[data-test-id="59716c97497eb9694541f7c3d37b1a4d"] >> nth=1'); await countryName.click(); diff --git a/tests/e2e/Digv2/FormFields/Phone.spec.js b/tests/e2e/Digv2/FormFields/Phone.spec.js index c35fa8386..131b61148 100644 --- a/tests/e2e/Digv2/FormFields/Phone.spec.js +++ b/tests/e2e/Digv2/FormFields/Phone.spec.js @@ -84,7 +84,7 @@ test.describe('E2E test', () => { await page.locator('text=United States+1 >> nth=0').click(); const editablePhoneInput = editablePhone.locator('input'); await editablePhoneInput.click(); - await editablePhoneInput.fill('6175551212'); + await editablePhoneInput.pressSequentially('6175551212'); /** Validation tests */ const validationMsg = 'Invalid Phone'; @@ -93,7 +93,7 @@ test.describe('E2E test', () => { await page.locator('text=United States+1 >> nth=0').click(); await editablePhoneInput.click(); /** Entering an invalid Phone number */ - await editablePhoneInput.fill('61'); + await editablePhoneInput.pressSequentially('61'); await editablePhoneInput.blur(); /** Expecting an error for Invalid phone number */ await expect(page.locator(`p:has-text("${validationMsg}")`)).toBeVisible(); @@ -102,7 +102,8 @@ test.describe('E2E test', () => { await editablePhoneInput.clear(); await countrySelector.click(); await page.locator('text=United States+1 >> nth=0').click(); - await editablePhoneInput.fill('6175551212'); + await editablePhoneInput.click(); + await editablePhoneInput.pressSequentially('6175551212'); await editablePhoneInput.blur(); /** Expecting the invalid Phone number error be no longer present */ diff --git a/tests/e2e/Digv2/ViewTemplates/Confirmation.spec.js b/tests/e2e/Digv2/ViewTemplates/Confirmation.spec.js index f1e480a4f..f3382248b 100644 --- a/tests/e2e/Digv2/ViewTemplates/Confirmation.spec.js +++ b/tests/e2e/Digv2/ViewTemplates/Confirmation.spec.js @@ -48,7 +48,8 @@ test.describe('E2E test', () => { await countrySelector.click(); await page.locator('text=United States+1 >> nth=0').click(); const phoneInput = phone.locator('input'); - await phoneInput.fill('6175551212'); + await phoneInput.click(); + await phoneInput.pressSequentially('6175551212'); await page.locator('button:has-text("submit")').click(); diff --git a/tests/e2e/MediaCo/embedded.spec.js b/tests/e2e/MediaCo/embedded.spec.js index 3677b7fc6..b6cbbb203 100644 --- a/tests/e2e/MediaCo/embedded.spec.js +++ b/tests/e2e/MediaCo/embedded.spec.js @@ -62,7 +62,7 @@ test.describe('E2E test', () => { await page.locator('text=United States+1 >> nth=0').click(); const phoneInput = phone.locator('input'); await phoneInput.click(); - await phoneInput.fill('6175551212'); + await phoneInput.pressSequentially('6175551212'); await page.locator('button:has-text("next")').click(); diff --git a/tests/e2e/MediaCo/portal.spec.js b/tests/e2e/MediaCo/portal.spec.js index cb8102622..689cf8096 100644 --- a/tests/e2e/MediaCo/portal.spec.js +++ b/tests/e2e/MediaCo/portal.spec.js @@ -74,7 +74,7 @@ test.describe('E2E test', () => { await page.locator('text=United States+1 >> nth=0').click(); const phoneInput = phone.locator('input'); await phoneInput.click(); - await phoneInput.fill('6175551212'); + await phoneInput.pressSequentially('6175551212'); await page.locator('button:has-text("submit")').click();