From acf399c269fef95c00b87a53a3a832841efcf9dd Mon Sep 17 00:00:00 2001 From: XHY Date: Tue, 20 Aug 2024 20:52:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20rich-text.test.js=20?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=EF=BC=8C=E8=B0=83=E6=95=B4=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E6=97=B6=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 3981e81178ae4a505a1504d11c9db1586e67e37b) --- pages/component/rich-text/rich-text.test.js | 1 + pages/component/rich-text/rich-text.uvue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/component/rich-text/rich-text.test.js b/pages/component/rich-text/rich-text.test.js index a5144416..70644939 100644 --- a/pages/component/rich-text/rich-text.test.js +++ b/pages/component/rich-text/rich-text.test.js @@ -18,6 +18,7 @@ describe('rich-text-test', () => { it('richt-text-height', async () => { + await page.waitFor(1000); let beforeValue = await page.data('richTextHeight') await page.callMethod('changeText') await page.waitFor(500) diff --git a/pages/component/rich-text/rich-text.uvue b/pages/component/rich-text/rich-text.uvue index 0744c1b5..2ba06f2f 100644 --- a/pages/component/rich-text/rich-text.uvue +++ b/pages/component/rich-text/rich-text.uvue @@ -36,7 +36,7 @@ this.richTextElement = uni.getElementById('richtext') as UniElement setTimeout(() => { this.updateRichTextHeight() - }, 500) + }, 1200) }, methods: { changeText() { -- GitLab