提交 bef962a1 编写于 作者: 辛宝Otto's avatar 辛宝Otto 🥊

test: 延迟部分组件事件测试,触发有动画时间

上级 f79a85e6
......@@ -78,6 +78,7 @@ describe('Checkbox.uvue', () => {
it('trigger UniCheckboxGroupChangeEvent', async () => {
const element = await page.$('.checkbox-item-0')
await element.tap()
await page.waitFor(500)
const eventCallbackNum = await page.callMethod('getEventCallbackNum')
expect(eventCallbackNum - originEventCallbackNum).toBe(3)
})
......
......@@ -73,6 +73,7 @@ describe('Radio.uvue', () => {
it('trigger UniRadioGroupChangeEvent', async () => {
const element = await page.$('#trigger-change')
await element.tap()
await page.waitFor(500)
const eventCallbackNum = await page.callMethod('getEventCallbackNum')
expect(eventCallbackNum - originEventCallbackNum).toBe(3)
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册