Change method to fix flakiness with address selection

This commit is contained in:
JennyNou 2026-04-07 10:15:45 -04:00
parent 74afade26a
commit f6e5805b00

View file

@ -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 });