issue-17030.test.js 610 B

12345678910111213141516171819202122232425
  1. const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
  2. const isMP = platformInfo.startsWith('mp')
  3. describe('issue-17030', () => {
  4. if (isMP) {
  5. it('skip mp', () => {
  6. expect(1).toBe(1)
  7. })
  8. return
  9. }
  10. let page
  11. beforeAll(async () => {
  12. page = await program.reLaunch('/pages/component/list-view/issue-17030')
  13. await page.waitFor(600)
  14. })
  15. it('issue-17030', async () => {
  16. await page.callMethod('addData')
  17. await page.waitFor(600)
  18. const scrollHeight = await page.callMethod('getScrollHeight')
  19. expect(scrollHeight).toBeGreaterThanOrEqual(180)
  20. })
  21. })