From 6bae2a3818a530ae23858c233a4a8858ac26fe60 Mon Sep 17 00:00:00 2001 From: yoho <907415276@qq.com> Date: Wed, 27 Apr 2022 09:57:04 +0800 Subject: [PATCH] fix: timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 翠 / green --- packages/playground/assets/__tests__/assets.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/playground/assets/__tests__/assets.spec.ts b/packages/playground/assets/__tests__/assets.spec.ts index daf6b80a1ccadb..9104e030923829 100644 --- a/packages/playground/assets/__tests__/assets.spec.ts +++ b/packages/playground/assets/__tests__/assets.spec.ts @@ -304,8 +304,7 @@ if (!isBuild) { (code) => code.replace('#0088ff', '#00ff88'), true ) - // wait for page reload - await timeout(200) + await page.waitForNavigation() await untilUpdated(() => getColor('.import-css'), 'rgb(0, 255, 136)') }) }