Skip to content

Commit bd4c5d9

Browse files
authored
Playwright checkout step wait fix (#1015)
1 parent 932901e commit bd4c5d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/playwright/pages/CheckoutPage.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export class CheckoutPage {
4646

4747
if (addressCount > 1) {
4848
await addressSelect.selectOption({ index: 0 })
49+
await addressSelect.dispatchEvent('change')
50+
await this.page.waitForTimeout(200)
4951
await this.page.waitForLoadState('networkidle')
5052
return
5153
}
@@ -81,12 +83,13 @@ export class CheckoutPage {
8183

8284
async continue(expectedStep) {
8385
await this.page.getByTestId('continue').click()
84-
await this.page.waitForTimeout(200)
86+
await this.page.waitForTimeout(500)
8587
await this.page.waitForLoadState('networkidle')
8688
await this.page.waitForURL('**/' + expectedStep)
8789
if (expectedStep != 'success') {
8890
await this.continueButtonVisible()
8991
}
92+
await this.page.waitForTimeout(500)
9093
}
9194

9295
async continueButtonVisible() {

0 commit comments

Comments
 (0)