提交 425161ed 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新text自动化测试用例

上级 f4f2d2ac
...@@ -26,15 +26,14 @@ describe('text-props', () => { ...@@ -26,15 +26,14 @@ describe('text-props', () => {
await page.waitFor(100) await page.waitFor(100)
const element2 = await page.$('#empty-text2') const element2 = await page.$('#empty-text2')
if (element2 != null) { if (element2 != null) {
expect(await element2.text()).toBe('')
const { width, height } = await element2.size() const { width, height } = await element2.size()
expect(width).toBe(0) expect(width).toBe(0)
expect(height).toBe(0) expect(height).toBe(0)
} }
const element3 = await page.$('#empty-text3') const element3 = await page.$('#empty-text3')
if (element3 != null) { if (element3 != null) {
const { width, height } = await element3.size() expect(await element3.text()).toBe('')
expect(width).toBe(0)
expect(height).toBe(0)
} }
await page.setData({ await page.setData({
autoTest: false autoTest: false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册