Skip to content

Commit

Permalink
test: wait networkidle before assert (#17442)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Jun 11, 2024
1 parent d6a174f commit ceb5f43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion playground/fs-serve/__tests__/base/fs-serve-base.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ const stringified = JSON.stringify(testJSON)
describe.runIf(isServe)('main', () => {
beforeAll(async () => {
const srcPrefix = viteTestUrl.endsWith('/') ? '' : '/'
await page.goto(viteTestUrl + srcPrefix + 'src/')
await page.goto(viteTestUrl + srcPrefix + 'src/', {
// while networkidle is discouraged, we use here because we're not using playwright's retry-able assertions,
// and refactoring the code below to manually retry would be harder to read.
waitUntil: 'networkidle',
})
})

test('default import', async () => {
Expand Down

0 comments on commit ceb5f43

Please sign in to comment.