Change method to fix flakiness with address selection
This commit is contained in:
parent
74afade26a
commit
f6e5805b00
1 changed files with 1 additions and 1 deletions
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Reference in a new issue