From 18b0bdfdc7239112df58580b0843ed48d4613642 Mon Sep 17 00:00:00 2001 From: yurj26 <1816387074@qq.com> Date: Fri, 27 Oct 2023 15:35:11 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E4=BF=AE=E6=94=B9progress=20=E7=BB=84?= =?UTF-8?q?=E4=BB=B6waitFor=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/progress/progress.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/component/progress/progress.test.js b/pages/component/progress/progress.test.js index b53b99bc..66247251 100644 --- a/pages/component/progress/progress.test.js +++ b/pages/component/progress/progress.test.js @@ -17,15 +17,15 @@ describe('Progress.uvue', () => { const p1 = await page.$('.p1') const p2 = await page.$('.p2') const p3 = await page.$('.p3') - page.callMethod('setProgress') - await page.waitFor(500) + await page.callMethod('setProgress') + await page.waitFor(1000) expect(await p.property('percent')).toEqual(20) expect(await p1.property('percent')).toEqual(40) expect(await p2.property('percent')).toEqual(60) expect(await p3.property('percent')).toEqual(80) expect(await getData('curPercent')).toEqual(20) - page.callMethod('clearProgress') - await page.waitFor(500) + await page.callMethod('clearProgress') + await page.waitFor(1000) expect(await p.property('percent')).toEqual(0) expect(await p1.property('percent')).toEqual(0) expect(await p2.property('percent')).toEqual(0) -- GitLab