From a739ab83bdb1e5fad847ba7c1fd36cbfb4c6f79c Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Wed, 21 Feb 2024 16:38:21 +0800 Subject: [PATCH] =?UTF-8?q?test:=20web=E7=AB=AF=E5=B7=B2=E5=AF=B9=E9=BD=90?= =?UTF-8?q?$forceUpdate=E3=80=81$parent=EF=BC=8C=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BE=8B#773#776?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 2 +- pages/component-instance/force-update/force-update.test.js | 2 +- pages/component-instance/parent/parent.test.js | 7 ------- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/pages.json b/pages.json index e1d3c16..86ca774 100644 --- a/pages.json +++ b/pages.json @@ -183,13 +183,13 @@ "navigationBarTitleText": "$options" } }, - // #ifdef APP { "path": "pages/component-instance/parent/parent", "style": { "navigationBarTitleText": "$parent" } }, + // #ifdef APP { "path": "pages/component-instance/root/root", "style": { diff --git a/pages/component-instance/force-update/force-update.test.js b/pages/component-instance/force-update/force-update.test.js index ce38400..21a9342 100644 --- a/pages/component-instance/force-update/force-update.test.js +++ b/pages/component-instance/force-update/force-update.test.js @@ -14,6 +14,6 @@ describe('$forceUpdate', () => { await triggerForceUpdateBtn.tap() const timeText2 = (await timeEl.text()).replace('Date.now(): ', '') - expect(parseInt(timeText2)).toBeGreaterThanOrEqual(parseInt(timeText1)) + expect(parseInt(timeText2)).toBeGreaterThan(parseInt(timeText1)) }) }) diff --git a/pages/component-instance/parent/parent.test.js b/pages/component-instance/parent/parent.test.js index ccafa89..ec50207 100644 --- a/pages/component-instance/parent/parent.test.js +++ b/pages/component-instance/parent/parent.test.js @@ -1,13 +1,6 @@ const PAGE_PATH = '/pages/component-instance/parent/parent' describe('$parent', () => { - if (process.env.uniTestPlatformInfo.startsWith('web')) { - // TODO: web 端暂不支持 - it('web', async () => { - expect(1).toBe(1) - }) - return - } let page beforeAll(async () => { page = await program.reLaunch(PAGE_PATH) -- GitLab