scroll-view-refresher.test.js 554 字节
Newer Older
shutao-dc's avatar
shutao-dc 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// uni-app自动化测试教程: uni-app自动化测试教程: https://uniapp.dcloud.net.cn/worktile/auto/hbuilderx-extension/

describe('test title', () => {

    let page;
    beforeAll(async () => {
        page = await program.reLaunch('/pages/component/scroll-view/scroll-view-refresher');
        await page.waitFor(300);
    });


    it('check_refresher', async () => {
      await page.setData({
          refresherTriggered: true
      })
      await page.waitFor(2000);
      expect(await page.data('refresherrefresh')).toBe(true)
    });
});