Skip to content

Commit

Permalink
feat(e2e): 调整截屏时间
Browse files Browse the repository at this point in the history
re #80
  • Loading branch information
fanniehuang committed Mar 15, 2021
1 parent 61e852a commit 2bb3d3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/wxa-cli/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 1 addition & 2 deletions packages/wxa-cli/src/tester/wxa-e2eTest/e2eTestCaseTpl.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ for (let j = 0; j < testCaseNameArr.length; j++) {
try {
fs.rmdirSync(screenshotDir);
} catch (err) {
console.log(err)
}
}
try {
Expand All @@ -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`));
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2bb3d3a

Please sign in to comment.