From 2bb3d3a0b3c36d20b0278711f4a6b9fbccae34f6 Mon Sep 17 00:00:00 2001 From: fanniehuang Date: Mon, 15 Mar 2021 10:08:38 +0800 Subject: [PATCH] =?UTF-8?q?feat(e2e):=20=E8=B0=83=E6=95=B4=E6=88=AA?= =?UTF-8?q?=E5=B1=8F=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit re #80 --- packages/wxa-cli/package.json | 2 +- packages/wxa-cli/src/tester/wxa-e2eTest/e2eTestCaseTpl.ejs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/wxa-cli/package.json b/packages/wxa-cli/package.json index d7f9072a..188708d8 100644 --- a/packages/wxa-cli/package.json +++ b/packages/wxa-cli/package.json @@ -1,6 +1,6 @@ { "name": "wxa-cli2-apple", - "version": "1.0.9", + "version": "1.0.25", "description": "cli for wxa development", "main": "dist/wxa.js", "scripts": { diff --git a/packages/wxa-cli/src/tester/wxa-e2eTest/e2eTestCaseTpl.ejs b/packages/wxa-cli/src/tester/wxa-e2eTest/e2eTestCaseTpl.ejs index 664b06c6..ef424627 100644 --- a/packages/wxa-cli/src/tester/wxa-e2eTest/e2eTestCaseTpl.ejs +++ b/packages/wxa-cli/src/tester/wxa-e2eTest/e2eTestCaseTpl.ejs @@ -57,7 +57,6 @@ for (let j = 0; j < testCaseNameArr.length; j++) { try { fs.rmdirSync(screenshotDir); } catch (err) { - console.log(err) } } try { @@ -66,7 +65,6 @@ for (let j = 0; j < testCaseNameArr.length; j++) { fs.mkdirSync(diffDir); } } catch(err) { - console.log(err); } let record = require(path.join(testDir, testName, `./record.js`)); @@ -144,6 +142,7 @@ for (let j = 0; j < testCaseNameArr.length; j++) { await page.waitFor(300) } // await miniprogram.restoreWxMethod('request'); + await sleep(5000) let same = await screenShot({ screenshotDir, screenCount: screenCount,