From f6e5805b00e4f29c6496dee58229198d608bf62b Mon Sep 17 00:00:00 2001 From: JennyNou Date: Tue, 7 Apr 2026 10:15:45 -0400 Subject: [PATCH] Change method to fix flakiness with address selection --- playwright-tests/pages/PolicyHolderDetailsPage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright-tests/pages/PolicyHolderDetailsPage.ts b/playwright-tests/pages/PolicyHolderDetailsPage.ts index 2cca536a..d7ab5125 100644 --- a/playwright-tests/pages/PolicyHolderDetailsPage.ts +++ b/playwright-tests/pages/PolicyHolderDetailsPage.ts @@ -45,7 +45,7 @@ export class PolicyHolderDetailsPage extends BasePage { // For essential flows, when address fields are not pre-filled if (!addressValue || addressValue.trim() === '') { await this.addressInputBox.click(); - await this.addressInputBox.fill(customerDetails.address.street); + await this.addressInputBox.pressSequentially(customerDetails.address.street); // Wait for suggestions to load (Google Places has a slight delay) await this.page.locator('.pac-item').first().waitFor({ state: 'visible', timeout: 6000 });