提交 d551eaf7 编写于 作者: H hdx

mixin-datacom: 修复自动化测试判定条件

上级 7aa927ba
......@@ -8,7 +8,7 @@ describe('mixin-datacom', () => {
})
it('mixinDatacomGet', async () => {
const datacom = await page.$('.datacom')
const childCount = await datacom.$$('.list-item')
expect(childCount > 0).toBe(true)
const children = await datacom.$$('.list-item')
expect(children.length > 0).toBe(true)
})
})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册