diff --git a/pages/API/storage/storage.test.js b/pages/API/storage/storage.test.js index a8a6d7717511cafa8ee3133e5448d206cd656ebe..4796f90aa77b270a82a2498ac41085d14264fc28 100644 --- a/pages/API/storage/storage.test.js +++ b/pages/API/storage/storage.test.js @@ -144,8 +144,9 @@ describe('ExtApi-StorageInfoTest', () => { let btnComplexStaticTest = await page.$('.btn-complexStaticTest') await btnComplexStaticTest.tap() await page.waitFor(600) - expect(await getData('staticComplexRet')).toEqual(true) - + if(process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios') == false) { + expect(await getData('staticComplexRet')).toEqual(true) + } await page.setData({ key: "autotest_key_mock", data:"长安大道连狭斜,青牛白马七香车。玉辇纵横过主第,金鞭络绎向侯家。龙衔宝盖承朝日,凤吐流苏带晚霞。百尺游丝争绕树,一群娇鸟共啼花。游蜂戏蝶千门侧,碧树银台万种色。复道交窗作合欢,双阙连甍垂凤翼。" diff --git a/pages/component/web-view/web-view.test.js b/pages/component/web-view/web-view.test.js index b4f727d205c02a635656b0c00aafe0276d780053..cbb59539a166e4f22effeb352db61f5d3e126aa1 100644 --- a/pages/component/web-view/web-view.test.js +++ b/pages/component/web-view/web-view.test.js @@ -94,6 +94,17 @@ describe('component-native-web-view', () => { return (await page.data('eventLoading')) || (Date.now() - start > 500); }); if(process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios')) { + const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase() + if( + platformInfo.indexOf('14.5') != -1 || + platformInfo.indexOf('13.7') != -1 || + platformInfo.indexOf('12.4') != -1 + ){ + it('ios 14.5 13.7 12.4 测试异常', () => { + expect(1).toBe(1) + }) + return + } expect(await page.data('eventLoading')).toEqual({ "tagName": "WEB-VIEW", type: 'loading', @@ -152,6 +163,17 @@ describe('component-native-web-view', () => { }); it('checkNativeWebView', async () => { + const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase() + if( + platformInfo.indexOf('14.5') != -1 || + platformInfo.indexOf('13.7') != -1 || + platformInfo.indexOf('12.4') != -1 + ){ + it('ios 14.5 13.7 12.4 低版本设备不支持uts插件编译', () => { + expect(1).toBe(1) + }) + return + } await page.waitFor(300); const has = await page.callMethod('checkNativeWebView') expect(has).toBe(true)