提交 3f738ad9 编写于 作者: DCloud_iOS_WZT's avatar DCloud_iOS_WZT

Swiper组件测试用例 修正

上级 52796e55
...@@ -38,7 +38,7 @@ describe('test swiper', () => { ...@@ -38,7 +38,7 @@ describe('test swiper', () => {
}) })
await page.waitFor(600) await page.waitFor(600)
expect(await getData('currentValChange')).toEqual(0) expect(await getData('currentValChange')).toEqual(0)
await page.waitFor(1800) await page.waitFor(1600)
expect(await getData('currentValChange')).toEqual(1) expect(await getData('currentValChange')).toEqual(1)
await page.waitFor(2000) await page.waitFor(2000)
expect(await getData('currentValChange')).toEqual(2) expect(await getData('currentValChange')).toEqual(2)
...@@ -50,11 +50,11 @@ describe('test swiper', () => { ...@@ -50,11 +50,11 @@ describe('test swiper', () => {
}) })
await page.waitFor(600) await page.waitFor(600)
expect(await getData('currentValChange')).toEqual(0) expect(await getData('currentValChange')).toEqual(0)
await page.waitFor(1800) await page.waitFor(1600)
expect(await getData('currentValChange')).toEqual(1) expect(await getData('currentValChange')).toEqual(1)
await page.waitFor(1800) await page.waitFor(2000)
expect(await getData('currentValChange')).toEqual(2) expect(await getData('currentValChange')).toEqual(2)
await page.waitFor(1800) await page.waitFor(2000)
expect(await getData('currentValChange')).toEqual(0) expect(await getData('currentValChange')).toEqual(0)
await page.setData({ await page.setData({
circularSelect: false, circularSelect: false,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册