list-view-multiplex.test.js 725 字节
Newer Older
1
describe('component-native-list-view', () => {
DCloud-WZF's avatar
DCloud-WZF 已提交
2 3 4 5 6 7 8
  if (process.env.uniTestPlatformInfo.startsWith('android')) {
    let page
    beforeAll(async () => {
      //打开list-view-multiplex测试页
      page = await program.reLaunch('/pages/component/list-view/list-view-multiplex')
      await page.waitFor('list-view')
    })
9

DCloud-WZF's avatar
DCloud-WZF 已提交
10 11 12 13 14 15 16 17 18 19 20 21
    //滚动list-view到底部 加载更多 如果异常则直接闪退
    it('check_list_item_multiplex', async () => {
      await page.callMethod('listViewScrollByY', 5000)
      await page.waitFor(400)
      await page.callMethod('listViewScrollByY', 100)
    })
  } else {
    // TODO: web 端暂不支持
    it('web', async () => {
      expect(1).toBe(1)
    })
  }
22
})