From 47616d53b60df900654ed17d5a7b24b217ca3481 Mon Sep 17 00:00:00 2001 From: Anne_LXM Date: Tue, 7 May 2024 21:07:56 +0800 Subject: [PATCH] test update --- main.js | 2 +- pages/list/list.nvue | 1 + pages/list/search/search.test.js | 2 +- pages/pages.test.js | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 52269d0..617d566 100644 --- a/main.js +++ b/main.js @@ -1,6 +1,6 @@ import App from './App' import i18n from './lang/i18n' - +// 自动化测试时,不弹出提示框 uni.showModal = ()=>{}; // #ifndef VUE3 diff --git a/pages/list/list.nvue b/pages/list/list.nvue index 8c96e1c..cb296a7 100644 --- a/pages/list/list.nvue +++ b/pages/list/list.nvue @@ -143,6 +143,7 @@ // uni.hideLoading() }, methods: { + // 自动化测试 loadData(e) { console.log("e: ----", e); this.dataList = e[0] diff --git a/pages/list/search/search.test.js b/pages/list/search/search.test.js index 50c55e1..dd4714f 100644 --- a/pages/list/search/search.test.js +++ b/pages/list/search/search.test.js @@ -13,7 +13,7 @@ describe('search', () => { } beforeAll(async () => { page = await program.reLaunch(PAGE_PATH) - console.log('page', await program.pageStack()) + console.log('pageStack', await program.pageStack()) await page.waitFor('view') }) it('搜索发现-显示-隐藏', async () => { diff --git a/pages/pages.test.js b/pages/pages.test.js index a33ad03..8d9e847 100644 --- a/pages/pages.test.js +++ b/pages/pages.test.js @@ -9,7 +9,7 @@ describe('page screenshot test', () => { it('ios', async () => { expect(1).toBe(1) }) - return + return } beforeAll(async () => { console.log("page screenshot test start"); -- GitLab