From 28d5551eba74bd32ba0597221455c7741f0deaad Mon Sep 17 00:00:00 2001 From: XHY Date: Fri, 23 Aug 2024 12:25:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20rich-text=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=BE=8B=EF=BC=8C=E5=8A=A0=E5=A4=A7=E5=BB=B6=E8=BF=9F?= =?UTF-8?q?=E6=97=B6=E9=97=B4=EF=BC=8C=E9=81=BF=E5=85=8D=E5=9B=A0=E4=B8=BA?= =?UTF-8?q?=E6=97=B6=E6=9C=BA=E5=AF=BC=E8=87=B4=E8=8E=B7=E5=8F=96=E5=80=BC?= =?UTF-8?q?=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit bb71231ad08d0ffa5615592ebb7f44b4c7598dba) --- pages/component/rich-text/rich-text.test.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pages/component/rich-text/rich-text.test.js b/pages/component/rich-text/rich-text.test.js index 70644939..17919f03 100644 --- a/pages/component/rich-text/rich-text.test.js +++ b/pages/component/rich-text/rich-text.test.js @@ -13,17 +13,20 @@ describe('rich-text-test', () => { let page beforeAll(async () => { page = await program.reLaunch(PAGE_PATH) - await page.waitFor(1000); + await page.waitFor(1500); }) it('richt-text-height', async () => { - await page.waitFor(1000); let beforeValue = await page.data('richTextHeight') + if beforeValue < 10 { + await page.waitFor(1000) + beforeValue = await page.data('richTextHeight') + } await page.callMethod('changeText') await page.waitFor(500) await page.callMethod('changeText') - await page.waitFor(500) + await page.waitFor(1000) let afterValue = await page.data('richTextHeight') console.log('beforeValue:', beforeValue) console.log('afterValue:', afterValue) -- GitLab