From c4927577d1f0ff2813ce5fd0ca440ae0ac944a41 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Wed, 20 Mar 2024 15:27:15 +0800 Subject: [PATCH] =?UTF-8?q?modal/toast/actionsction=20onload=E6=88=AA?= =?UTF-8?q?=E5=9B=BE=E5=A2=9E=E5=8A=A0=E9=80=82=E5=BD=93=E5=BB=B6=E8=BF=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/action-sheet/action-sheet.test.js | 2 +- pages/API/modal/modal.test.js | 1 + pages/API/toast/toast.test.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/API/action-sheet/action-sheet.test.js b/pages/API/action-sheet/action-sheet.test.js index 38d14161..2de304cd 100644 --- a/pages/API/action-sheet/action-sheet.test.js +++ b/pages/API/action-sheet/action-sheet.test.js @@ -13,7 +13,7 @@ describe('API-loading', () => { it("onload-action-sheet-test", async () => { if (isAndroid) { - + await page.waitFor(500); const res = await page.callMethod('jest_getWindowInfo') const windowHeight = res.windowHeight * res.pixelRatio; const windowWidth = res.windowWidth * res.pixelRatio; diff --git a/pages/API/modal/modal.test.js b/pages/API/modal/modal.test.js index 3d8a0add..f8231572 100644 --- a/pages/API/modal/modal.test.js +++ b/pages/API/modal/modal.test.js @@ -14,6 +14,7 @@ describe('API-loading', () => { it("onload-modal-test", async () => { if (isAndroid) { + await page.waitFor(500); const res = await page.callMethod('jest_getWindowInfo') const windowHeight = res.windowHeight * res.pixelRatio; const windowWidth = res.windowWidth * res.pixelRatio; diff --git a/pages/API/toast/toast.test.js b/pages/API/toast/toast.test.js index d4cdd426..b37d618c 100644 --- a/pages/API/toast/toast.test.js +++ b/pages/API/toast/toast.test.js @@ -17,7 +17,7 @@ describe('API-toast', () => { if (isAndroid) { - + await page.waitFor(500); const res = await page.callMethod('jest_getWindowInfo') const windowHeight = res.windowHeight * res.pixelRatio; const windowWidth = res.windowWidth * res.pixelRatio; -- GitLab