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

test(API): navigator

上级 b607faf4
...@@ -207,7 +207,6 @@ ...@@ -207,7 +207,6 @@
"navigationBarTitleText": "设置导航条颜色" "navigationBarTitleText": "设置导航条颜色"
} }
}, },
{ {
"path": "pages/API/navigator/new-page/new-page-1", "path": "pages/API/navigator/new-page/new-page-1",
"style": { "style": {
......
...@@ -8,6 +8,7 @@ describe('navigator', () => { ...@@ -8,6 +8,7 @@ describe('navigator', () => {
let lifeCycleNum let lifeCycleNum
afterAll(async () => { afterAll(async () => {
page = await program.reLaunch(CURRENT_PAGE_PATH)
const resetLifecycleNum = 1100 const resetLifecycleNum = 1100
await page.callMethod('setLifeCycleNum', resetLifecycleNum) await page.callMethod('setLifeCycleNum', resetLifecycleNum)
lifeCycleNum = await page.callMethod('getLifeCycleNum') lifeCycleNum = await page.callMethod('getLifeCycleNum')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册