From 61bf6617600e381e6f85ebc953254559a88e862d Mon Sep 17 00:00:00 2001 From: yinjiacheng Date: Sat, 9 Nov 2024 17:00:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0rich-text=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/rich-text/rich-text.test.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pages/component/rich-text/rich-text.test.js b/pages/component/rich-text/rich-text.test.js index 14b0f7d0..625aef50 100644 --- a/pages/component/rich-text/rich-text.test.js +++ b/pages/component/rich-text/rich-text.test.js @@ -50,6 +50,18 @@ describe('rich-text-test', () => { }); await page.waitFor(1000); expect(await page.data('isItemClickTrigger')).toBe(true); + await page.setData({ + isItemClickTrigger: false + }); + await program.navigateTo("/pages/component/rich-text/rich-text-tags"); + await page.waitFor(500); + await program.navigateBack(); + await program.tap({ + x: (rect.right - rect.left) / 2, + y: info.statusBarHeight + 44 + (rect.bottom - rect.top) / 2 + }); + await page.waitFor(1000); + expect(await page.data('isItemClickTrigger')).toBe(true); await page.setData({ autoTest: false }); -- GitLab