Add assertion to fix flaky Afterpay step
This commit is contained in:
parent
eb4d3415fb
commit
3fd9b952ae
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ export class AfterpayPage extends BasePage {
|
||||||
await this.login(paymentDetails.password!);
|
await this.login(paymentDetails.password!);
|
||||||
|
|
||||||
try {await this.confirmButton.waitFor({ state: 'visible', timeout: 5000 });
|
try {await this.confirmButton.waitFor({ state: 'visible', timeout: 5000 });
|
||||||
await this.confirmButton.isVisible()
|
expect(this.confirmButton).toBeVisible();
|
||||||
await this.confirmButton.click();
|
await this.confirmButton.click();
|
||||||
} catch {
|
} catch {
|
||||||
// For some orders, user will have 2 options to choose from: monthly with interest or biweekly without interest
|
// For some orders, user will have 2 options to choose from: monthly with interest or biweekly without interest
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue