提交 d9903c02 编写于 作者: H hdx

feat(circular-reference): 补充自动化测试

上级 a0098bb6
<template>
<view>
<text>child-c::{{text}}</text>
<child-c v-if="!end" class="child-a-child-b" :text="text" :limit="limit-1"></child-c>
<child-c v-if="!end" class="child-c-child-c" :text="text" :limit="limit-1"></child-c>
</view>
</template>
......
const PAGE_PATH = '/pages/component-instance/circular-reference/circular-reference'
describe('circular-reference', () => {
let page
beforeAll(async () => {
page = await program.reLaunch(PAGE_PATH)
await page.waitFor(500)
})
it('render', async () => {
const child_a = await page.$$('.child-a-child-b')
expect(child_a.length).toBe(5)
const child_b = await page.$$('.child-b-child-a')
expect(child_b.length).toBe(5)
const child_c = await page.$$('.child-c-child-c')
expect(child_c.length).toBe(10)
})
})
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册