Skip to content

Commit 0568e4a

Browse files
committed
chore: broken tests unhead v2
1 parent a9f79da commit 0568e4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/e2e/basic.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ describe('basic', () => {
140140
})
141141
it('bundle', async () => {
142142
const { page } = await createPage('/bundle-use-script')
143+
// wait for the script to be loaded
144+
await page.waitForTimeout(500)
143145
// get content of #script-src
144146
const text = await page.$eval('#script-src', el => el.textContent)
145147
expect(text).toMatchInlineSnapshot(`"/_scripts/6bEy8slcRmYcRT4E2QbQZ1CMyWw9PpHA7L87BtvSs2U.js"`)

0 commit comments

Comments
 (0)