提交 cfe232b5 编写于 作者: Anne_LXM's avatar Anne_LXM

调整测试顺序/增加等待时间

上级 18abef25
......@@ -17,7 +17,11 @@ describe('list', () => {
})
it('检测标题', async () => {
expect.assertions(1);
await page.waitFor(5000)
if(process.env.UNI_PLATFORM === "mp-weixin"){
await page.waitFor(8000)
}else{
await page.waitFor(3000)
}
const getTitle = await page.data('dataList')
console.log('getTitle: ', getTitle);
expect(getTitle.title).toBe('阿里小程序IDE官方内嵌uni-app,为开发者提供多端开发服务')
......
const Sequencer = require("@jest/test-sequencer").default;
const sortTestFilenames = ["grid.test.js","list.test.js","search.test.js","about.test.js","register.test.js","login-withpwd.test.js","userinfo.test.js","ucenter.test.js","settings.test.js","pages.test.js"];
const sortTestFilenames = ["register.test.js","grid.test.js","list.test.js","search.test.js","about.test.js","login-withpwd.test.js","userinfo.test.js","ucenter.test.js","settings.test.js","pages.test.js"];
class CustomSequencer extends Sequencer {
sort(tests) {
// 测试例排序
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册