issue-14765.test.js 754 B

12345678910111213141516171819202122232425
  1. const PAGE_PATH = '/pages/template/issue-14765/issue-14765'
  2. // TODO 此测试例本应放在hello-uvue内,但是目前hello-uvue测试时是关闭virtualHost的,暂时放在这里
  3. describe(PAGE_PATH, () => {
  4. const platformInfo = process.env.uniTestPlatformInfo.toLowerCase()
  5. const isAndroid = platformInfo.startsWith('android')
  6. const isWeb = platformInfo.startsWith('web')
  7. const isMP = platformInfo.startsWith('mp')
  8. let page
  9. beforeAll(async () => {
  10. page = await program.reLaunch(PAGE_PATH)
  11. await page.waitFor('view')
  12. })
  13. it('basic bind id test', async () => {
  14. await page.waitFor(500)
  15. const {
  16. testNode1,
  17. testNode2
  18. } = await page.data()
  19. expect(testNode1).toBe(true)
  20. expect(testNode2).toBe(true)
  21. })
  22. })