diff --git a/main.js b/main.js index 52269d00b966643cff011e9868e34db7c41bea01..617d56655bc3f7b68a1c024d09b1a9778fa98ca9 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 8c96e1cec1061ccafcbb72b9414c349612ae19b0..cb296a7af45cc963e819ff4ccaa7703df4c34a69 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 50c55e11ace95ccfdd2f69aadceaac4fbdded84b..dd4714f2dd935a8b373bfcdd511b980084965eae 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 a33ad03499a894f5af5168fb74466abf7f77f797..8d9e8476af835ea86dd9522535752291b490888a 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");