提交 e0d93c28 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test: 修复页面获取错误导致测试失败问题

上级 aa730afa
...@@ -11,7 +11,7 @@ describe('app-lifecycle', () => { ...@@ -11,7 +11,7 @@ describe('app-lifecycle', () => {
expect(lifeCycleNum).toBe(1100) expect(lifeCycleNum).toBe(1100)
}) })
it('onLastPageBackPress', async () => { it('onLastPageBackPress', async () => {
await program.navigateBack() page = await program.navigateBack()
await page.waitFor(1000) await page.waitFor(1000)
lifeCycleNum = await page.callMethod('getLifeCycleNum') lifeCycleNum = await page.callMethod('getLifeCycleNum')
expect(lifeCycleNum).toBe(100) expect(lifeCycleNum).toBe(100)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册