diff --git a/pages/component/rich-text/rich-text.test.js b/pages/component/rich-text/rich-text.test.js index 14b0f7d0e34c92d898e56b07f78b59cf89de7599..625aef505e5acb5609806fe215df9f8ee0c47e22 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 });