Skip to content

Commit

Permalink
Wait for network idle before snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb committed Sep 13, 2023
1 parent b2ff4dd commit 2326ca5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ for (const dir of languageDirections) {
.click()
// To make the tests consistent, set the played area to the same position
await page.mouse.click(170, 650)
// Allow audio to buffer to the seeked position
// eslint-disable-next-line playwright/no-networkidle
await page.waitForLoadState("networkidle")
await expectSnapshot(`global-audio-player-on-search-${dir}.png`, page)
})
})
Expand Down

0 comments on commit 2326ca5

Please sign in to comment.