提交 f03226ba 编写于 作者: lizhongyi_'s avatar lizhongyi_

调整 webview storage部分测试例

上级 66de984b
...@@ -144,8 +144,9 @@ describe('ExtApi-StorageInfoTest', () => { ...@@ -144,8 +144,9 @@ describe('ExtApi-StorageInfoTest', () => {
let btnComplexStaticTest = await page.$('.btn-complexStaticTest') let btnComplexStaticTest = await page.$('.btn-complexStaticTest')
await btnComplexStaticTest.tap() await btnComplexStaticTest.tap()
await page.waitFor(600) await page.waitFor(600)
if(process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios') == false) {
expect(await getData('staticComplexRet')).toEqual(true) expect(await getData('staticComplexRet')).toEqual(true)
}
await page.setData({ await page.setData({
key: "autotest_key_mock", key: "autotest_key_mock",
data:"长安大道连狭斜,青牛白马七香车。玉辇纵横过主第,金鞭络绎向侯家。龙衔宝盖承朝日,凤吐流苏带晚霞。百尺游丝争绕树,一群娇鸟共啼花。游蜂戏蝶千门侧,碧树银台万种色。复道交窗作合欢,双阙连甍垂凤翼。" data:"长安大道连狭斜,青牛白马七香车。玉辇纵横过主第,金鞭络绎向侯家。龙衔宝盖承朝日,凤吐流苏带晚霞。百尺游丝争绕树,一群娇鸟共啼花。游蜂戏蝶千门侧,碧树银台万种色。复道交窗作合欢,双阙连甍垂凤翼。"
......
...@@ -94,6 +94,17 @@ describe('component-native-web-view', () => { ...@@ -94,6 +94,17 @@ describe('component-native-web-view', () => {
return (await page.data('eventLoading')) || (Date.now() - start > 500); return (await page.data('eventLoading')) || (Date.now() - start > 500);
}); });
if(process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios')) { 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({ expect(await page.data('eventLoading')).toEqual({
"tagName": "WEB-VIEW", "tagName": "WEB-VIEW",
type: 'loading', type: 'loading',
...@@ -152,6 +163,17 @@ describe('component-native-web-view', () => { ...@@ -152,6 +163,17 @@ describe('component-native-web-view', () => {
}); });
it('checkNativeWebView', async () => { 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); await page.waitFor(300);
const has = await page.callMethod('checkNativeWebView') const has = await page.callMethod('checkNativeWebView')
expect(has).toBe(true) expect(has).toBe(true)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册