提交 2f59b2af 编写于 作者: A Anne_LXM

test:更新tabbar页面跳转方式

上级 31c55396
...@@ -2,7 +2,7 @@ describe('pages/clientDB/clientDB.vue', () => { ...@@ -2,7 +2,7 @@ describe('pages/clientDB/clientDB.vue', () => {
let page let page
beforeAll(async () => { beforeAll(async () => {
// 重新reLaunch至首页,并获取首页page对象(其中 program 是uni-automator自动注入的全局对象) // 重新reLaunch至首页,并获取首页page对象(其中 program 是uni-automator自动注入的全局对象)
page = await program.reLaunch('/pages/clientDB/clientDB') page = await program.switchTab('/pages/clientDB/clientDB')
await page.waitFor('view') await page.waitFor('view')
page = await program.currentPage() page = await program.currentPage()
}) })
......
...@@ -3,9 +3,8 @@ describe('pages/cloudFunction/cloudFunction.vue', () => { ...@@ -3,9 +3,8 @@ describe('pages/cloudFunction/cloudFunction.vue', () => {
let page let page
beforeAll(async () => { beforeAll(async () => {
// 重新reLaunch至首页,并获取首页page对象(其中 program 是uni-automator自动注入的全局对象) // 重新reLaunch至首页,并获取首页page对象(其中 program 是uni-automator自动注入的全局对象)
page = await program.reLaunch('/pages/cloudFunction/cloudFunction') page = await program.switchTab('/pages/cloudFunction/cloudFunction')
await page.waitFor('view') await page.waitFor('view')
page = await program.currentPage()
}) })
it('云函数页-检查标题',async()=>{ it('云函数页-检查标题',async()=>{
......
...@@ -4,7 +4,7 @@ describe('pages/cloudObject/cloudObject.vue', () => { ...@@ -4,7 +4,7 @@ describe('pages/cloudObject/cloudObject.vue', () => {
let page; let page;
beforeAll(async () => { beforeAll(async () => {
page = await program.reLaunch('/pages/cloudObject/cloudObject') page = await program.switchTab('/pages/cloudObject/cloudObject')
await page.waitFor('view'); await page.waitFor('view');
}); });
......
...@@ -5,7 +5,6 @@ describe('pages/schema2code/schema2code.nvue', () => { ...@@ -5,7 +5,6 @@ describe('pages/schema2code/schema2code.nvue', () => {
// 重新reLaunch至首页,并获取首页page对象(其中 program 是uni-automator自动注入的全局对象) // 重新reLaunch至首页,并获取首页page对象(其中 program 是uni-automator自动注入的全局对象)
page = await program.switchTab('/pages/schema2code/schema2code') page = await program.switchTab('/pages/schema2code/schema2code')
await page.waitFor('view') await page.waitFor('view')
page = await program.currentPage()
}) })
it('schema2code-点击',async()=>{ it('schema2code-点击',async()=>{
......
...@@ -3,9 +3,8 @@ describe('pages/storage/storage.vue', () => { ...@@ -3,9 +3,8 @@ describe('pages/storage/storage.vue', () => {
let page let page
beforeAll(async () => { beforeAll(async () => {
// 重新reLaunch至首页,并获取首页page对象(其中 program 是uni-automator自动注入的全局对象) // 重新reLaunch至首页,并获取首页page对象(其中 program 是uni-automator自动注入的全局对象)
page = await program.reLaunch('/pages/storage/storage') page = await program.switchTab('/pages/storage/storage')
await page.waitFor('view') await page.waitFor('view')
page = await program.currentPage()
}) })
it('云存储页-检查标题',async()=>{ it('云存储页-检查标题',async()=>{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册