提交 d758c1ea 编写于 作者: H hdx

navigator组件测试: 延长路由跳转等待时间

上级 bff58493
......@@ -11,7 +11,7 @@ describe('navigator', () => {
const btnNavigate = await page.$('.navigate')
await btnNavigate.tap()
await page.waitFor(100)
await page.waitFor(300)
const currentPage = await program.currentPage()
expect(currentPage.path).toBe(PAGE_PATH_NAVIGATE.substring(1))
......@@ -22,7 +22,7 @@ describe('navigator', () => {
const btnRedirect = await page.$('.redirect')
await btnRedirect.tap()
await page.waitFor(100)
await page.waitFor(300)
const currentPage = await program.currentPage()
expect(currentPage.path).toBe(PAGE_PATH_REDIRECT.substring(1))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册