Increase timeout for less flakiness in test runs
This commit is contained in:
parent
4b67276abb
commit
beae88ebf2
2 changed files with 2 additions and 2 deletions
|
|
@ -132,6 +132,6 @@ export class BasePage {
|
||||||
await expect(async () => {
|
await expect(async () => {
|
||||||
const currentUrl = this.page.url();
|
const currentUrl = this.page.url();
|
||||||
expect(currentUrl).not.toEqual(startingUrl);
|
expect(currentUrl).not.toEqual(startingUrl);
|
||||||
}).toPass({ timeout: 60_000 });
|
}).toPass({ timeout: 70_000 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -48,7 +48,7 @@ export class PolicyHolderDetailsPage extends BasePage {
|
||||||
await this.addressInputBox.fill(customerDetails.address.street);
|
await this.addressInputBox.fill(customerDetails.address.street);
|
||||||
|
|
||||||
// Wait for suggestions to load (Google Places has a slight delay)
|
// Wait for suggestions to load (Google Places has a slight delay)
|
||||||
await this.page.locator('.pac-item').first().waitFor({ state: 'visible', timeout: 5000 });
|
await this.page.locator('.pac-item').first().waitFor({ state: 'visible', timeout: 6000 });
|
||||||
|
|
||||||
// Click the first result
|
// Click the first result
|
||||||
await this.page.locator('.pac-item').first().click();
|
await this.page.locator('.pac-item').first().click();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue