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

fix: 减小网络波动的影响,增加网络相关测试例的等待时间

上级 b81d3fb0
......@@ -8,7 +8,7 @@ describe('ExtApi-DownloadFile', () => {
page = await program.reLaunch(PAGE_PATH)
await page.waitFor(600);
await page.callMethod('jest_downloadFile');
await page.waitFor(1000);
await page.waitFor(2000);
res = await page.data('jest_result');
});
......@@ -37,7 +37,7 @@ describe('ExtApi-DownloadFile', () => {
return
}
res = await page.callMethod('jest_set_cookie')
await page.waitFor(1000);
await page.waitFor(2000);
res = await page.data('jest_result');
expect(res).toBe(true)
});
......@@ -46,7 +46,7 @@ describe('ExtApi-DownloadFile', () => {
return
}
res = await page.callMethod('jest_delete_cookie')
await page.waitFor(1000);
await page.waitFor(2000);
res = await page.data('jest_result');
expect(res).toBe(true)
});
......
......@@ -22,7 +22,7 @@ async function request(page, method, header, data, url) {
header: header
})
res = await page.callMethod('jest_request')
await page.waitFor(500);
await page.waitFor(2000);
res = await page.data('jest_result');
expect(res).toBe(true)
}
......@@ -87,7 +87,7 @@ describe('ExtApi-Request', () => {
version = version.split(" ")[1]
if(version > 9){
res = await page.callMethod('jest_set_cookie')
await page.waitFor(500);
await page.waitFor(2000);
res = await page.data('jest_result');
expect(res).toBe(true)
}
......@@ -99,7 +99,7 @@ describe('ExtApi-Request', () => {
version = version.split(" ")[1]
if(version > 9){
res = await page.callMethod('jest_delete_cookie')
await page.waitFor(1000);
await page.waitFor(2000);
res = await page.data('jest_result');
expect(res).toBe(true)
}
......
......@@ -15,7 +15,7 @@ describe('ExtApi-UploadFile', () => {
page = await program.reLaunch(PAGE_PATH)
await page.waitFor(600);
await page.callMethod('jest_uploadFile');
await page.waitFor(1000);
await page.waitFor(2000);
res = await page.data('jest_result');
});
......@@ -35,7 +35,7 @@ describe('ExtApi-UploadFile', () => {
version = version.split(" ")[1]
if(version > 9){
res = await page.callMethod('jest_set_cookie')
await page.waitFor(1000);
await page.waitFor(2000);
res = await page.data('jest_result');
expect(res).toBe(true)
}
......@@ -47,7 +47,7 @@ describe('ExtApi-UploadFile', () => {
version = version.split(" ")[1]
if(version > 9){
res = await page.callMethod('jest_delete_cookie')
await page.waitFor(1000);
await page.waitFor(2000);
res = await page.data('jest_result');
expect(res).toBe(true)
}
......@@ -55,7 +55,7 @@ describe('ExtApi-UploadFile', () => {
});
it('Check files upload', async () => {
res = await page.callMethod('jest_files_upload')
await page.waitFor(1000);
await page.waitFor(2000);
res = await page.data('jest_result');
expect(res).toBe(true)
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册