diff --git a/pages/component/progress/progress.test.js b/pages/component/progress/progress.test.js index b53b99bcffde0b52d9ae1e269dae9a7ff93ec274..66247251350f608ad78412423dc0aa92463cc79b 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)