提交 6714e8c7 编写于 作者: 雪洛's avatar 雪洛

test: 撤回video测试例的修改,修复request测试例错误

上级 f1002a2f
......@@ -346,13 +346,14 @@
url: 'https://unidemo.dcloud.net.cn/api/news?column=title,author_name,cover,published_at',
method: "GET",
success: (res : RequestSuccess<UTSJSONObject[]>) => {
console.log(res)
if (res.statusCode == 200 && Array.isArray(res.data)) {
this.jest_result = true
} else {
this.jest_result = false
}
},
complete: () => {
fail: () => {
this.jest_result = false
}
});
......
describe('component-native-video', () => {
if(process.env.uniTestPlatformInfo.startsWith('web')){
// TODO: web 端暂不支持测试
it('web', async () => {
expect(1).toBe(1)
})
return
}
let page;
beforeAll(async () => {
page = await program.reLaunch('/pages/component/video/video');
......@@ -41,5 +47,7 @@ describe('component-native-video', () => {
page = await program.navigateTo('/pages/component/video/video-format');
await page.waitFor(1000);
expect(await page.data('isError')).toBe(false);
await page.waitFor(100000);
expect(1).toBe(1);
});
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册