diff --git a/pages/component/text/text-props.test.js b/pages/component/text/text-props.test.js index 2ec93d6d15a3220112fec5216e48e5bb3d751c9c..510f7b56ad7b2c98312025f59632f2fed1e50a9b 100644 --- a/pages/component/text/text-props.test.js +++ b/pages/component/text/text-props.test.js @@ -26,15 +26,14 @@ describe('text-props', () => { await page.waitFor(100) const element2 = await page.$('#empty-text2') if (element2 != null) { + expect(await element2.text()).toBe('') const { width, height } = await element2.size() expect(width).toBe(0) expect(height).toBe(0) } const element3 = await page.$('#empty-text3') if (element3 != null) { - const { width, height } = await element3.size() - expect(width).toBe(0) - expect(height).toBe(0) + expect(await element3.text()).toBe('') } await page.setData({ autoTest: false