diff --git a/playground/hmr/__tests__/hmr.spec.ts b/playground/hmr/__tests__/hmr.spec.ts index 274c78a1d04c72..163931724470a0 100644 --- a/playground/hmr/__tests__/hmr.spec.ts +++ b/playground/hmr/__tests__/hmr.spec.ts @@ -712,20 +712,19 @@ if (!isBuild) { const file = 'missing-import/a.js' const importCode = "import 'missing-modules'" const unImportCode = `// ${importCode}` - const timeout = 2000 await page.goto(viteTestUrl + '/missing-import/index.html', { waitUntil: 'load', }) await untilBrowserLogAfter(async () => { - const loadPromise = page.waitForEvent('load', { timeout }) + const loadPromise = page.waitForEvent('load') editFile(file, (code) => code.replace(importCode, unImportCode)) await loadPromise }, 'missing test') await untilBrowserLogAfter(async () => { - const loadPromise = page.waitForEvent('load', { timeout }) + const loadPromise = page.waitForEvent('load') editFile(file, (code) => code.replace(unImportCode, importCode)) await loadPromise }, /500/)