diff --git a/pages/API/modal/modal.test.js b/pages/API/modal/modal.test.js index 048a0d66e818ed3174b1c3ebfcd9e23d25701120..4e89390d359c641248d524a104f7a85b44b5c06a 100644 --- a/pages/API/modal/modal.test.js +++ b/pages/API/modal/modal.test.js @@ -7,7 +7,7 @@ describe('API-loading', () => { beforeAll(async () => { page = await program.reLaunch('/pages/API/modal/modal') - await page.waitFor(200); + await page.waitFor('view'); }); diff --git a/pages/API/resize-observer/resize-observer.test.js b/pages/API/resize-observer/resize-observer.test.js index ad6de613af2bfc44912faf0f1d4dbf39d48b88f1..74b7124e2bfa33e2c7caa88f73adf41bdfe4aadf 100644 --- a/pages/API/resize-observer/resize-observer.test.js +++ b/pages/API/resize-observer/resize-observer.test.js @@ -9,7 +9,7 @@ describe('api-resize-observer', () => { it('check_resize-observer', async () => { await page.waitFor(600) - const image = await program.screenshot(); + const image = await program.screenshot({fullPage: true}); expect(image).toSaveImageSnapshot(); }) diff --git a/pages/API/set-navigation-bar-color/set-navigation-bar-color.test.js b/pages/API/set-navigation-bar-color/set-navigation-bar-color.test.js index c4373a46bd674be18bcc7d5e6e609fd1ac511d1b..a99467b91103b3299b9b5d5bc6223d3fdf6cf5ab 100644 --- a/pages/API/set-navigation-bar-color/set-navigation-bar-color.test.js +++ b/pages/API/set-navigation-bar-color/set-navigation-bar-color.test.js @@ -2,6 +2,12 @@ const CURRENT_PAGE_PATH = '/pages/API/set-navigation-bar-color/set-navigation-bar-color' describe('setNavigationBarColor', () => { + if (process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true') { + it('dummyTest', () => { + expect(1).toBe(1) + }) + return + } let page let originLifeCycleNum beforeAll(async () => { diff --git a/pages/API/set-navigation-bar-title/set-navigation-bar-title.test.js b/pages/API/set-navigation-bar-title/set-navigation-bar-title.test.js index 698bf80997c4b2de39513ff07af50a468c232f24..1f8cb6877105a29a19264a6e0d85c4b55864e2dc 100644 --- a/pages/API/set-navigation-bar-title/set-navigation-bar-title.test.js +++ b/pages/API/set-navigation-bar-title/set-navigation-bar-title.test.js @@ -2,6 +2,12 @@ const CURRENT_PAGE_PATH = "/pages/API/set-navigation-bar-title/set-navigation-bar-title"; describe("setNavigationBarColor", () => { + if (process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true') { + it('dummyTest', () => { + expect(1).toBe(1) + }) + return + } let page; let originLifeCycleNum; beforeAll(async () => { diff --git a/pages/template/test-background-color-content/test-background-color-content.test.js b/pages/template/test-background-color-content/test-background-color-content.test.js index dd0041f3ac672bef26eebf8af0b5e5373beb36ca..fc134b0acd1fe59854e3ea08cc50d950ee963330 100644 --- a/pages/template/test-background-color-content/test-background-color-content.test.js +++ b/pages/template/test-background-color-content/test-background-color-content.test.js @@ -8,7 +8,7 @@ describe('PagesJson-backgroundColorContent', () => { it('background color content size', async () => { await program.pageScrollTo(1000) - const image = await program.screenshot(); + const image = await program.screenshot({fullPage: true}); expect(image).toSaveImageSnapshot() })