diff --git a/pages/API/element-takesnapshot/element-takesnapshot.test.js b/pages/API/element-takesnapshot/element-takesnapshot.test.js index 5aedb2e7720cf542b8b6a9bf45f561ac80b5acc1..d5cd7ebbcc1c1d5456791e49fc332c3802be3847 100644 --- a/pages/API/element-takesnapshot/element-takesnapshot.test.js +++ b/pages/API/element-takesnapshot/element-takesnapshot.test.js @@ -2,7 +2,7 @@ const PAGE_PATH = "/pages/API/element-takesnapshot/element-takesnapshot"; describe("element-takesnapshot", () => { - if (process.env.uniTestPlatformInfo.indexOf('web') > -1) { + if (process.env.uniTestPlatformInfo.indexOf('web') > -1 || process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true') { it('dummyTest', () => { expect(1).toBe(1) }) diff --git a/pages/API/get-app-authorize-setting/get-app-authorize-setting.test.js b/pages/API/get-app-authorize-setting/get-app-authorize-setting.test.js index 31578789855dbdb5f8e988d51524544b26bb024f..44b9d35ee22effadc3f6a84743d72109b8c378da 100644 --- a/pages/API/get-app-authorize-setting/get-app-authorize-setting.test.js +++ b/pages/API/get-app-authorize-setting/get-app-authorize-setting.test.js @@ -1,7 +1,7 @@ const PAGE_PATH = '/pages/API/get-app-authorize-setting/get-app-authorize-setting' -describe('ExtApi-GetAppAuthorizeSetting', () => { - if (process.env.uniTestPlatformInfo.indexOf('web') > -1) { +describe('ExtApi-GetAppAuthorizeSetting', () => { + if (process.env.uniTestPlatformInfo.indexOf('web') > -1 || process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true') { it('dummyTest', () => { expect(1).toBe(1) }) diff --git a/pages/API/get-file-system-manager/get-file-system-manager.test.js b/pages/API/get-file-system-manager/get-file-system-manager.test.js index 547c9633ec2a5127583f8c20269e402f2f58af77..c8f4c83bbac6fbba71d1776d78fa050eb4f356b4 100644 --- a/pages/API/get-file-system-manager/get-file-system-manager.test.js +++ b/pages/API/get-file-system-manager/get-file-system-manager.test.js @@ -2,7 +2,7 @@ const PAGE_PATH = '/pages/API/get-file-system-manager/get-file-system-manager' describe('ExtApi-FileManagerTest', () => { - if (process.env.uniTestPlatformInfo.indexOf('web') > -1) { + if (process.env.uniTestPlatformInfo.indexOf('web') > -1 || process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true') { it('dummyTest', () => { expect(1).toBe(1) }) diff --git a/pages/API/get-system-setting/get-system-setting.test.js b/pages/API/get-system-setting/get-system-setting.test.js index 779c2a5edc19c0f2510d4c20f56f44db1129845d..c715b3081c2c91b14d64b57542a3af76c3839c74 100644 --- a/pages/API/get-system-setting/get-system-setting.test.js +++ b/pages/API/get-system-setting/get-system-setting.test.js @@ -1,7 +1,7 @@ const PAGE_PATH = '/pages/API/get-system-setting/get-system-setting' describe('ExtApi-GetSystemSetting', () => { - if (process.env.uniTestPlatformInfo.indexOf('web') > -1) { + if (process.env.uniTestPlatformInfo.indexOf('web') > -1 || process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true') { it('web', () => { expect(1).toBe(1) }) diff --git a/pages/component/nested-scroll-body/nested-scroll-body.test.js b/pages/component/nested-scroll-body/nested-scroll-body.test.js index 9463eaf8e055d9e499fbbdf467ebeab21468dc4c..a3b80a3996cc6bd37319dc0526d126544c692fd1 100644 --- a/pages/component/nested-scroll-body/nested-scroll-body.test.js +++ b/pages/component/nested-scroll-body/nested-scroll-body.test.js @@ -1,4 +1,11 @@ -describe('component-native-nested-scroll-body', () => { +describe('component-native-nested-scroll-body', () => { + if (process.env.uniTestPlatformInfo.indexOf('web') > -1 || process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true') { + it('dummyTest', () => { + expect(1).toBe(1) + }) + return + } + let page beforeAll(async () => { //打开lnested-scroll-body测试页 diff --git a/pages/component/nested-scroll-header/nested-scroll-header.test.js b/pages/component/nested-scroll-header/nested-scroll-header.test.js index 864d44b83c86587af95f2f4d5dc6b8c224ebc582..c3982468b594d27ad017d73c52ac27432131adad 100644 --- a/pages/component/nested-scroll-header/nested-scroll-header.test.js +++ b/pages/component/nested-scroll-header/nested-scroll-header.test.js @@ -1,15 +1,21 @@ describe('component-native-nested-scroll-header', () => { + if (process.env.uniTestPlatformInfo.indexOf('web') > -1 || process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true') { + it('dummyTest', () => { + expect(1).toBe(1) + }) + return + } + let page - beforeAll(async () => { + beforeAll(async () => { //打开lnested-scroll-header测试页 page = await program.reLaunch('/pages/component/nested-scroll-header/nested-scroll-header') await page.waitFor(600) - }) - - - it('check_nested-scroll-header', async () => { - const image = await program.screenshot(); - expect(image).toMatchImageSnapshot(); + }) + + + it('check_nested-scroll-header', async () => { + const image = await program.screenshot(); + expect(image).toMatchImageSnapshot(); }) }) -