提交 18b0bdfd 编写于 作者: Y yurj26

test: 修改progress 组件waitFor时间

上级 05b73223
...@@ -17,15 +17,15 @@ describe('Progress.uvue', () => { ...@@ -17,15 +17,15 @@ describe('Progress.uvue', () => {
const p1 = await page.$('.p1') const p1 = await page.$('.p1')
const p2 = await page.$('.p2') const p2 = await page.$('.p2')
const p3 = await page.$('.p3') const p3 = await page.$('.p3')
page.callMethod('setProgress') await page.callMethod('setProgress')
await page.waitFor(500) await page.waitFor(1000)
expect(await p.property('percent')).toEqual(20) expect(await p.property('percent')).toEqual(20)
expect(await p1.property('percent')).toEqual(40) expect(await p1.property('percent')).toEqual(40)
expect(await p2.property('percent')).toEqual(60) expect(await p2.property('percent')).toEqual(60)
expect(await p3.property('percent')).toEqual(80) expect(await p3.property('percent')).toEqual(80)
expect(await getData('curPercent')).toEqual(20) expect(await getData('curPercent')).toEqual(20)
page.callMethod('clearProgress') await page.callMethod('clearProgress')
await page.waitFor(500) await page.waitFor(1000)
expect(await p.property('percent')).toEqual(0) expect(await p.property('percent')).toEqual(0)
expect(await p1.property('percent')).toEqual(0) expect(await p1.property('percent')).toEqual(0)
expect(await p2.property('percent')).toEqual(0) expect(await p2.property('percent')).toEqual(0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册