@@ -127,7 +127,8 @@ test.describe('E2E test', () => {
127127 await phone . locator ( 'button' ) . click ( ) ;
128128 /** Selecting the country code */
129129 await page . locator ( 'text=United States+1 >> nth=0' ) . click ( ) ;
130- await phone . locator ( 'input' ) . fill ( '6175551212' ) ;
130+ await phone . locator ( 'input' ) . click ( ) ;
131+ await phone . locator ( 'input' ) . pressSequentially ( '6175551212' ) ;
131132
132133 /** Creating second row by clicking on `+Add` button */
133134 await page . locator ( 'a:has-text("+ Add")' ) . click ( ) ;
@@ -142,7 +143,8 @@ test.describe('E2E test', () => {
142143 await phone . locator ( 'button' ) . click ( ) ;
143144 /** Selecting the country code */
144145 await page . locator ( 'text=United States+1 >> nth=0' ) . click ( ) ;
145- await phone . locator ( 'input' ) . fill ( '6175451212' ) ;
146+ await phone . locator ( 'input' ) . click ( ) ;
147+ await phone . locator ( 'input' ) . pressSequentially ( '6175451212' ) ;
146148
147149 await page . locator ( 'button:has-text("Next")' ) . click ( ) ;
148150
@@ -239,7 +241,8 @@ test.describe('E2E test', () => {
239241 await phone . locator ( 'button' ) . click ( ) ;
240242 /** Selecting the country code */
241243 await page . locator ( 'text=United States+1 >> nth=0' ) . click ( ) ;
242- await phone . locator ( 'input' ) . fill ( '6175551212' ) ;
244+ await phone . locator ( 'input' ) . click ( ) ;
245+ await phone . locator ( 'input' ) . pressSequentially ( '6175551212' ) ;
243246
244247 const country = modal . locator ( 'div[data-test-id="59716c97497eb9694541f7c3d37b1a4d"]' ) ;
245248 await country . click ( ) ;
@@ -332,7 +335,8 @@ test.describe('E2E test', () => {
332335 await phone . locator ( 'button' ) . click ( ) ;
333336 /** Selecting the country code */
334337 await page . locator ( 'text=United States+1 >> nth=0' ) . click ( ) ;
335- await phone . locator ( 'input' ) . fill ( '6175551212' ) ;
338+ await phone . locator ( 'input' ) . click ( ) ;
339+ await phone . locator ( 'input' ) . pressSequentially ( '6175551212' ) ;
336340
337341 let countryName = page . locator ( 'div[data-test-id="59716c97497eb9694541f7c3d37b1a4d"]' ) ;
338342 await countryName . click ( ) ;
@@ -351,7 +355,8 @@ test.describe('E2E test', () => {
351355 await phone . locator ( 'button' ) . click ( ) ;
352356 /** Selecting the country code */
353357 await page . locator ( 'text=United States+1 >> nth=0' ) . click ( ) ;
354- await phone . locator ( 'input' ) . fill ( '6175451212' ) ;
358+ await phone . locator ( 'input' ) . click ( ) ;
359+ await phone . locator ( 'input' ) . pressSequentially ( '6175451212' ) ;
355360
356361 countryName = page . locator ( 'div[data-test-id="59716c97497eb9694541f7c3d37b1a4d"] >> nth=1' ) ;
357362 await countryName . click ( ) ;
0 commit comments