diff --git a/pages/component/editor/editor.test.js b/pages/component/editor/editor.test.js index 3e269d748c2596b99f65a79ed664822b1afab43f..9a52ed7d33ec3538e610615ed5e36599b40963c5 100644 --- a/pages/component/editor/editor.test.js +++ b/pages/component/editor/editor.test.js @@ -1,10 +1,8 @@ // uni-app自动化测试教程: uni-app自动化测试教程: https://uniapp.dcloud.net.cn/worktile/auto/hbuilderx-extension/ jest.setTimeout(30000); -const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase() -const isAndroid = platformInfo.startsWith('android') -const isIos = platformInfo.startsWith('ios') describe('editor.uvue', () => { - if (isAndroid || isIos) { + console.log('process.env',process.env) + if (!process.env.UNI_AUTOMATOR_APP_WEBVIEW || !process.env.uniTestPlatformInfo.startsWith('web')) { it('app', () => { expect(1).toBe(1) })