提交 1095bf4c 编写于 作者: 杜庆泉's avatar 杜庆泉

swiper 测试示例与web 对齐

上级 9efce5ad
......@@ -32,20 +32,22 @@ describe('test swiper', () => {
it('check autoplay loop', async () => {
await page.setData({
autoplaySelect: true,
currentValChange:0,
})
await page.waitFor(600)
expect(await getData('currentValChange')).toEqual(0)
await page.waitFor(2000)
expect(await getData('currentValChange')).toEqual(1)
await page.waitFor(5000)
expect(await getData('currentValChange')).toEqual(2)
await page.waitFor(300)
await page.waitFor(4000)
expect(await getData('currentValChange')).toEqual(0)
await page.setData({
circularSelect: true
circularSelect: true,
currentValChange:0,
})
await page.waitFor(2000)
expect(await getData('currentValChange')).toEqual(1)
await page.waitFor(2000)
expect(await getData('currentValChange')).toEqual(2)
await page.waitFor(1000)
expect(await getData('currentValChange')).toEqual(0)
await page.setData({
circularSelect: false,
autoplaySelect: false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册