transition-event.test.js 680 字节
Newer Older
张磊 已提交
1 2 3
// uni-app自动化测试教程: uni-app自动化测试教程: https://uniapp.dcloud.net.cn/worktile/auto/hbuilderx-extension/

describe('transition event', () => {
雪洛's avatar
雪洛 已提交
4 5 6 7 8 9
    if (process.env.uniTestPlatformInfo.indexOf('web') > -1) {
      it('dummyTest', () => {
        expect(1).toBe(1)
      })
      return
    }
张磊 已提交
10 11
    let page;
    beforeAll(async () => {
12
        page = await program.reLaunch('/pages/component/general-event/transition-event')
张磊 已提交
13 14 15 16 17 18 19 20 21
        await page.waitFor(3000);
    });

    it('transitionend', async () => {
        await page.callMethod('switchBtn')
        await page.waitFor(3000)
        expect(await page.data("onTransitionEndTriggr")).toBe(true)
    });
});