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

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

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