issue-13858.test.js 586 B

1234567891011121314151617181920212223242526
  1. const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
  2. const isWeb = platformInfo.startsWith('web')
  3. describe('issue-13858', () => {
  4. if (!isWeb) {
  5. it('skip not web', () => {
  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-13858')
  13. await page.waitFor('view')
  14. })
  15. it('check mounted', async () => {
  16. await page.waitFor(500)
  17. const {
  18. childMountedTriggeredCount
  19. } = await page.data()
  20. expect(childMountedTriggeredCount).toBe(1)
  21. })
  22. })