From 72b582cf647b989cc452aa5729a316b29022f4ec Mon Sep 17 00:00:00 2001 From: duqingquan Date: Wed, 18 Oct 2023 17:06:24 +0800 Subject: [PATCH] =?UTF-8?q?dix=20takesnapshot=20autotest=20=E8=99=9A?= =?UTF-8?q?=E6=8B=9F=E6=9C=BA=E6=B5=8B=E8=AF=95=E5=A4=B1=E8=B4=A5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/element-takesnapshot/element-takesnapshot.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/API/element-takesnapshot/element-takesnapshot.test.js b/pages/API/element-takesnapshot/element-takesnapshot.test.js index 673f2f78..54b0603c 100644 --- a/pages/API/element-takesnapshot/element-takesnapshot.test.js +++ b/pages/API/element-takesnapshot/element-takesnapshot.test.js @@ -13,15 +13,15 @@ describe("element-takesnapshot", () => { beforeAll(async () => { page = await program.reLaunch(PAGE_PATH) - await page.waitFor(600); + await page.waitFor(1200); }); it("takeSnapshot", async () => { - await page.waitFor(600) + await page.waitFor(1200) let btnTakeSnapshot = await page.$('.btn-TakeSnapshot') await btnTakeSnapshot.tap() - page.waitFor(600) + await page.waitFor(1200) const image = await getData('snapImage') console.log(image) ///storage/emulated/0/Android/data/io.dcloud.uniappx/apps/__UNI__3584C99/cache/temp/screenshot/1697513148915.png -- GitLab