From 7aa927bac6caa88c46522fd226bbd288d3568b3f Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Wed, 13 Dec 2023 16:41:46 +0800 Subject: [PATCH] =?UTF-8?q?test(onLoad):=20=E4=BC=98=E5=8C=96=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/navigator/new-page/onLoad.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/API/navigator/new-page/onLoad.test.js b/pages/API/navigator/new-page/onLoad.test.js index c84b3cf3..ead0b33d 100644 --- a/pages/API/navigator/new-page/onLoad.test.js +++ b/pages/API/navigator/new-page/onLoad.test.js @@ -49,8 +49,8 @@ describe("onLoad", () => { page = await program.reLaunch(INTERMEDIATE_PAGE_PATH); await page.waitFor('view'); await page.callMethod("navigateToOnLoadWithType", "switchTab"); - page = await program.currentPage(); await page.waitFor(100); + page = await program.currentPage(); expect(page.path).toBe("pages/tabBar/component"); }); it("showToast", async () => { -- GitLab