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

test(lifecycle): 修复自动化测试异常

上级 312042c2
...@@ -74,12 +74,12 @@ describe('app-lifecycle', () => { ...@@ -74,12 +74,12 @@ describe('app-lifecycle', () => {
lifeCycleNum = await page.callMethod('getLifeCycleNum') lifeCycleNum = await page.callMethod('getLifeCycleNum')
expect(lifeCycleNum).toBe(1110) expect(lifeCycleNum).toBe(1110)
}) })
it('onLastPageBackPress', async () => { it('onLastPageBackPress', async () => {
if (process.env.uniTestPlatformInfo.startsWith('android')) { if (process.env.uniTestPlatformInfo.startsWith('android')) {
page = await program.navigateBack() page = await program.navigateBack()
await page.waitFor(700) await page.waitFor(700)
lifeCycleNum = await page.callMethod('getLifeCycleNum') lifeCycleNum = await page.callMethod('getLifeCycleNum')
expect(lifeCycleNum).toBe(100) expect(lifeCycleNum).toBe(110)
} }
}) })
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册