From 9fff9a5713d28435ec900ca7cdaea02a2a9663d3 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Thu, 16 Nov 2023 17:14:55 +0800 Subject: [PATCH] =?UTF-8?q?test(loadFontFace):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=AD=97=E4=BD=93=E5=8A=A0=E8=BD=BD=E7=AD=89=E5=BE=85=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/load-font-face/load-font-face.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/API/load-font-face/load-font-face.test.js b/pages/API/load-font-face/load-font-face.test.js index df73df33..abd45b99 100644 --- a/pages/API/load-font-face/load-font-face.test.js +++ b/pages/API/load-font-face/load-font-face.test.js @@ -4,7 +4,7 @@ const CHILD_PAGE_PATH = "/pages/API/load-font-face/load-font-face-child"; describe("loadFontFace", () => { beforeAll(async () => { const page = await program.navigateTo(PAGE_PATH); - await page.waitFor(3000); + await page.waitFor(4000); }); it("parent screenshot", async () => { const image = await program.screenshot(); @@ -12,7 +12,7 @@ describe("loadFontFace", () => { }); it("child screenshot", async () => { const page = await program.navigateTo(CHILD_PAGE_PATH); - await page.waitFor("view"); + await page.waitFor(1000); const image = await program.screenshot(); expect(image).toMatchImageSnapshot(); }); -- GitLab