diff --git a/pages/component/editor/editor.test.js b/pages/component/editor/editor.test.js index 016014ba2c5ef6e5885c4151c859309847cbec8c..997f5200aab4ae0cce6de888192a1d6d69f96709 100644 --- a/pages/component/editor/editor.test.js +++ b/pages/component/editor/editor.test.js @@ -1,7 +1,10 @@ // 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 (!process.env.uniTestPlatformInfo.startsWith('web')) { + if (isAndroid || isIos) { it('app', () => { expect(1).toBe(1) })