提交 47616d53 编写于 作者: Anne_LXM's avatar Anne_LXM

test update

上级 dc1ef955
import App from './App' import App from './App'
import i18n from './lang/i18n' import i18n from './lang/i18n'
// 自动化测试时,不弹出提示框
uni.showModal = ()=>{}; uni.showModal = ()=>{};
// #ifndef VUE3 // #ifndef VUE3
......
...@@ -143,6 +143,7 @@ ...@@ -143,6 +143,7 @@
// uni.hideLoading() // uni.hideLoading()
}, },
methods: { methods: {
// 自动化测试
loadData(e) { loadData(e) {
console.log("e: ----", e); console.log("e: ----", e);
this.dataList = e[0] this.dataList = e[0]
......
...@@ -13,7 +13,7 @@ describe('search', () => { ...@@ -13,7 +13,7 @@ describe('search', () => {
} }
beforeAll(async () => { beforeAll(async () => {
page = await program.reLaunch(PAGE_PATH) page = await program.reLaunch(PAGE_PATH)
console.log('page', await program.pageStack()) console.log('pageStack', await program.pageStack())
await page.waitFor('view') await page.waitFor('view')
}) })
it('搜索发现-显示-隐藏', async () => { it('搜索发现-显示-隐藏', async () => {
......
...@@ -9,7 +9,7 @@ describe('page screenshot test', () => { ...@@ -9,7 +9,7 @@ describe('page screenshot test', () => {
it('ios', async () => { it('ios', async () => {
expect(1).toBe(1) expect(1).toBe(1)
}) })
return return
} }
beforeAll(async () => { beforeAll(async () => {
console.log("page screenshot test start"); console.log("page screenshot test start");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册