提交 bab8a01b 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

test: 修改插件中访问网络api的自动化测试例,屏蔽15及以下模拟器

上级 3719950d
...@@ -37,11 +37,11 @@ describe('ExtApi-DownloadFile', () => { ...@@ -37,11 +37,11 @@ describe('ExtApi-DownloadFile', () => {
expect(res).toBe(true); expect(res).toBe(true);
}); });
// 15以下的模拟器所对应的xcode不能编译自定义插件 // 15以下的模拟器所对应的xcode不能编译自定义插件,大于15是因为某台设备,会用xcode14.1跑15.5的设备
let version = process.env.uniTestPlatformInfo let version = process.env.uniTestPlatformInfo
let split = version.split(" ") let split = version.split(" ")
version = parseInt(split[split.length - 1]) version = parseInt(split[split.length - 1])
if(!process.env.uniTestPlatformInfo.toLocaleLowerCase().startsWith('ios') || version > 14) { if(!process.env.uniTestPlatformInfo.toLocaleLowerCase().startsWith('ios') || version > 15) {
it('Check Download File In UTS Module', async () => { it('Check Download File In UTS Module', async () => {
res = await page.callMethod('jest_uts_module_invoked') res = await page.callMethod('jest_uts_module_invoked')
await page.waitFor(2000); await page.waitFor(2000);
......
...@@ -131,11 +131,11 @@ describe('ExtApi-Request', () => { ...@@ -131,11 +131,11 @@ describe('ExtApi-Request', () => {
expect(res).toBe(true) expect(res).toBe(true)
}) })
// 15以下的模拟器所对应的xcode不能编译自定义插件 // 15以下的模拟器所对应的xcode不能编译自定义插件,大于15是因为某台设备,会用xcode14.1跑15.5的设备
let version = process.env.uniTestPlatformInfo let version = process.env.uniTestPlatformInfo
let split = version.split(" ") let split = version.split(" ")
version = parseInt(split[split.length - 1]) version = parseInt(split[split.length - 1])
if(!process.env.uniTestPlatformInfo.toLocaleLowerCase().startsWith('ios') || version > 14) { if(!process.env.uniTestPlatformInfo.toLocaleLowerCase().startsWith('ios') || version > 15) {
it('Check Post In UTS Module', async () => { it('Check Post In UTS Module', async () => {
res = await page.callMethod('jest_uts_module_invoked') res = await page.callMethod('jest_uts_module_invoked')
await page.waitFor(2000); await page.waitFor(2000);
......
...@@ -36,11 +36,11 @@ describe('ExtApi-UploadFile', () => { ...@@ -36,11 +36,11 @@ describe('ExtApi-UploadFile', () => {
expect(res).toBe(true) expect(res).toBe(true)
}); });
// 15以下的模拟器所对应的xcode不能编译自定义插件 // 15以下的模拟器所对应的xcode不能编译自定义插件,大于15是因为某台设备,会用xcode14.1跑15.5的设备
let version = process.env.uniTestPlatformInfo let version = process.env.uniTestPlatformInfo
let split = version.split(" ") let split = version.split(" ")
version = parseInt(split[split.length - 1]) version = parseInt(split[split.length - 1])
if(!process.env.uniTestPlatformInfo.toLocaleLowerCase().startsWith('ios') || version > 14) { if(!process.env.uniTestPlatformInfo.toLocaleLowerCase().startsWith('ios') || version > 15) {
it('Check Upload File In UTS Module', async () => { it('Check Upload File In UTS Module', async () => {
res = await page.callMethod('jest_uts_module_invoked') res = await page.callMethod('jest_uts_module_invoked')
await page.waitFor(2000); await page.waitFor(2000);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册