From 1647827a7590123549225bb71fb3972735862811 Mon Sep 17 00:00:00 2001 From: wangjinxin613 <1749574663@qq.com> Date: Mon, 1 Apr 2024 15:28:05 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=B5=8B=E8=AF=95=E4=BE=8B=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=20app-webview=20=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/request-payment/reqeust-payment.test.js | 2 +- pages/component/list-view/list-view-children-in-slot.test.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/API/request-payment/reqeust-payment.test.js b/pages/API/request-payment/reqeust-payment.test.js index f4edc656..84309652 100644 --- a/pages/API/request-payment/reqeust-payment.test.js +++ b/pages/API/request-payment/reqeust-payment.test.js @@ -2,7 +2,7 @@ const PAGE_PATH = "/pages/API/request-payment/request-payment"; describe("payment", () => { - if (process.env.uniTestPlatformInfo.indexOf('web') > -1) { + if (process.env.uniTestPlatformInfo.indexOf('web') > -1 || process.env.UNI_AUTOMATOR_APP_WEBVIEW === 'true') { it('web', () => { expect(1).toBe(1) }) diff --git a/pages/component/list-view/list-view-children-in-slot.test.js b/pages/component/list-view/list-view-children-in-slot.test.js index cf7a49c5..7c48374a 100644 --- a/pages/component/list-view/list-view-children-in-slot.test.js +++ b/pages/component/list-view/list-view-children-in-slot.test.js @@ -22,6 +22,7 @@ describe('list-view-children-in-slot', () => { const addBtn = await page.$('#add-btn') await addBtn.tap() + await page.waitFor(500) listItems = await page.$$('list-item') expect(listItems.length).toBe(11) @@ -33,12 +34,12 @@ describe('list-view-children-in-slot', () => { const emptyBtn = await page.$('#empty-btn') await emptyBtn.tap() - + await page.waitFor(500) listItems = await page.$$('list-item') expect(listItems.length).toBe(3) await addBtn.tap() - + await page.waitFor(500) listItems = await page.$$('list-item') expect(listItems.length).toBe(5) -- GitLab