diff --git a/pages/component/checkbox/checkbox.test.js b/pages/component/checkbox/checkbox.test.js index 68231ce551339382e22b630ce33f2db355100c34..6a4ff4015465ff862af7bec09fff8ae63713f562 100644 --- a/pages/component/checkbox/checkbox.test.js +++ b/pages/component/checkbox/checkbox.test.js @@ -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) }) diff --git a/pages/component/radio/radio.test.js b/pages/component/radio/radio.test.js index baa7ec155ca5a8d1b9156b18da1f35a604097e17..276091b0dc6dd64b27c158dba172a068ee559df2 100644 --- a/pages/component/radio/radio.test.js +++ b/pages/component/radio/radio.test.js @@ -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) })