diff --git a/pages/component/checkbox/checkbox.test.js b/pages/component/checkbox/checkbox.test.js index 37d062598e6513902dc65f41ca9080b79f2c559a..e6df2c26abe65db1e1bcaf996424cd8b9dc4256f 100644 --- a/pages/component/checkbox/checkbox.test.js +++ b/pages/component/checkbox/checkbox.test.js @@ -8,7 +8,7 @@ function getData(key = '') { let page beforeAll(async () => { page = await program.reLaunch('/pages/component/checkbox/checkbox') - await page.waitFor(1000) + await page.waitFor(2000); }) describe('Checkbox.uvue', () => { diff --git a/pages/component/general-event/general-event.test.js b/pages/component/general-event/general-event.test.js index ded3853e3ade9b306bb989785cc3cd324494c9e9..7bb717eb651c1874cde02cff9dd7abcb8c7c0517 100644 --- a/pages/component/general-event/general-event.test.js +++ b/pages/component/general-event/general-event.test.js @@ -53,8 +53,8 @@ describe('event trigger sequence', () => { ], }) const data = await page.data() - expect(data.onTouchStartTime).toBeLessThan(data.onTouchMoveTime) - expect(data.onTouchMoveTime).toBeLessThan(data.onTouchEndTime) + expect(data.onTouchStartTime).toBeLessThanOrEqual(data.onTouchMoveTime); + expect(data.onTouchMoveTime).toBeLessThanOrEqual(data.onTouchEndTime); }) it('click', async () => { diff --git a/pages/component/progress/progress.test.js b/pages/component/progress/progress.test.js index 2ce1304e3f34a35d480de9317c6737a2135d652e..a29b5a5b86806b8e9efe6d13e44881707f5e74d8 100644 --- a/pages/component/progress/progress.test.js +++ b/pages/component/progress/progress.test.js @@ -8,7 +8,7 @@ function getData(key = '') { let page beforeAll(async () => { page = await program.reLaunch('/pages/component/progress/progress') - await page.waitFor(1000) + await page.waitFor(2000); }) describe('Progress.uvue', () => { @@ -17,14 +17,14 @@ describe('Progress.uvue', () => { const p1 = await page.$('.p1') const p2 = await page.$('.p2') const p3 = await page.$('.p3') - await page.callMethod('setProgress') + 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) - await page.callMethod('clearProgress') + await page.callMethod('clearProgress') await page.waitFor(1000) expect(await p.property('percent')).toEqual(0) expect(await p1.property('percent')).toEqual(0) @@ -76,4 +76,4 @@ describe('Progress.uvue', () => { }) expect(await el.property('background-color')).toEqual('#007aff') }) -}) +}) diff --git a/pages/component/radio/radio.test.js b/pages/component/radio/radio.test.js index 696ca06904e29a6e1791ee775556a200cd1d334b..0ea3241cc8e0e4e174a009c870acbdd45002f735 100644 --- a/pages/component/radio/radio.test.js +++ b/pages/component/radio/radio.test.js @@ -8,7 +8,7 @@ function getData(key = '') { let page beforeAll(async () => { page = await program.reLaunch('/pages/component/radio/radio') - await page.waitFor(1000) + await page.waitFor(2000); }) describe('Radio.uvue', () => {