提交 fb1c13c3 编写于 作者: study夏羽's avatar study夏羽

Update list.test.js

上级 9afa0efc
......@@ -18,12 +18,12 @@ describe('pages/list/list.vue', () => {
await page.callMethod('searchClick')
await page.waitFor(1000)
if (process.env.UNI_PLATFORM != "mp-weixin") {
expect.assertions(1);
expect((await program.currentPage()).path).toBe('pages/list/search/search')
await page.waitFor(500)
// await program.navigateBack()
// expect((await program.navigateBack()).path).toBe('pages/list/list')
}
// if (process.env.UNI_PLATFORM != "mp-weixin") {
// expect.assertions(1);
// expect((await program.currentPage()).path).toBe('pages/list/search/search')
// await page.waitFor(500)
// await program.navigateBack()
// expect((await program.navigateBack()).path).toBe('pages/list/list')
// }
})
})
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册