From 17bff4fce5a182773f21ea1e6899bd2a3ef0ad83 Mon Sep 17 00:00:00 2001 From: Anne_LXM Date: Mon, 13 May 2024 20:02:26 +0800 Subject: [PATCH] test waitFor --- pages/grid/grid.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/grid/grid.test.js b/pages/grid/grid.test.js index e14716d..8078ab9 100644 --- a/pages/grid/grid.test.js +++ b/pages/grid/grid.test.js @@ -9,7 +9,11 @@ describe('grid', () => { await page.waitFor('view') }) it('检测宫格', async () => { - await page.waitFor(2000) + if(process.env.UNI_PLATFORM === "mp-weixin"){ + await page.waitFor(5000) + }else{ + await page.waitFor(2000) + } hasLogin = await page.data('hasLogin') let gridList = await page.data('gridList') console.log("gridList", gridList.length,hasLogin) -- GitLab