diff --git a/pages/API/navigator/new-page/onLoad.test.js b/pages/API/navigator/new-page/onLoad.test.js index e72ba6759d720cae6c8413303a7e6aa2f8fd6089..e44b8d81dd0a598309df2939ec2ccf584f8b5cd8 100644 --- a/pages/API/navigator/new-page/onLoad.test.js +++ b/pages/API/navigator/new-page/onLoad.test.js @@ -55,63 +55,63 @@ describe("onLoad", () => { }); it("showToast", async () => { page = await program.reLaunch(INTERMEDIATE_PAGE_PATH); - await page.waitFor('view'); + await page.waitFor("view"); await page.callMethod("navigateToOnLoadWithType", "showToast"); - await page.waitFor(500); + await page.waitFor(1000); const image = await program.screenshot({ adb: true, area: { x: 0, y: 200, - height: 2140 - } + height: 2140, + }, }); expect(image).toMatchImageSnapshot(); - await page.waitFor('view'); + await page.waitFor("view"); }); it("showLoading", async () => { page = await program.reLaunch(INTERMEDIATE_PAGE_PATH); - await page.waitFor('view'); + await page.waitFor("view"); await page.callMethod("navigateToOnLoadWithType", "showLoading"); - await page.waitFor(500); + await page.waitFor(1000); const image = await program.screenshot({ adb: true, area: { x: 0, y: 200, - height: 2140 - } + height: 2140, + }, }); expect(image).toMatchImageSnapshot(); }); it("showModal", async () => { page = await program.reLaunch(INTERMEDIATE_PAGE_PATH); - await page.waitFor('view'); + await page.waitFor("view"); await page.callMethod("navigateToOnLoadWithType", "showModal"); - await page.waitFor(500); + await page.waitFor(1000); const image = await program.screenshot({ adb: true, area: { x: 0, y: 200, - height: 2140 - } + height: 2140, + }, }); expect(image).toMatchImageSnapshot(); }); it("showActionSheet", async () => { page = await program.reLaunch(INTERMEDIATE_PAGE_PATH); - await page.waitFor('view'); + await page.waitFor("view"); await page.callMethod("navigateToOnLoadWithType", "showActionSheet"); - await page.waitFor(500); + await page.waitFor(1000); const image = await program.screenshot({ adb: true, area: { x: 0, - y: 200, - height: 2140 - } + y: 200, + height: 2140, + }, }); expect(image).toMatchImageSnapshot(); }); -}); +}); diff --git a/pages/component/progress/progress.test.js b/pages/component/progress/progress.test.js index a29b5a5b86806b8e9efe6d13e44881707f5e74d8..ea70b1d84f448eb57eb06a39d82a9ebc7e6ba1b2 100644 --- a/pages/component/progress/progress.test.js +++ b/pages/component/progress/progress.test.js @@ -18,7 +18,7 @@ describe('Progress.uvue', () => { const p2 = await page.$('.p2') const p3 = await page.$('.p3') await page.callMethod('setProgress') - await page.waitFor(1000) + await page.waitFor(2000); expect(await p.property('percent')).toEqual(20) expect(await p1.property('percent')).toEqual(40) expect(await p2.property('percent')).toEqual(60)