From 8b6b70ecaddcbf8b3f68f00bf5e73998cb52d6ee Mon Sep 17 00:00:00 2001 From: XHY Date: Fri, 15 Nov 2024 20:38:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20slider-maxValue=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BE=8B=20=E6=A8=A1=E6=8B=9F=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=9D=90=E6=A0=87=E7=82=B9=EF=BC=8C=E9=80=82=E9=85=8D?= =?UTF-8?q?=20iOS12.4=E6=9C=BA=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/rich-text/rich-text.test.js | 7 ++++++- pages/component/slider/slider-maxValue.test.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pages/component/rich-text/rich-text.test.js b/pages/component/rich-text/rich-text.test.js index 625aef50..fe1314a8 100644 --- a/pages/component/rich-text/rich-text.test.js +++ b/pages/component/rich-text/rich-text.test.js @@ -20,8 +20,13 @@ describe('rich-text-test', () => { it('richt-text-height', async () => { let beforeValue = await page.data('richTextHeight') if (beforeValue < 10) { - await page.waitFor(1000) + await page.waitFor(2000) beforeValue = await page.data('richTextHeight') + + if (beforeValue < 10) { + await page.waitFor(2000) + beforeValue = await page.data('richTextHeight') + } } await page.callMethod('changeText') await page.waitFor(500) diff --git a/pages/component/slider/slider-maxValue.test.js b/pages/component/slider/slider-maxValue.test.js index bb03050d..b1c6c049 100644 --- a/pages/component/slider/slider-maxValue.test.js +++ b/pages/component/slider/slider-maxValue.test.js @@ -27,7 +27,7 @@ describe('touch-events-test', () => { it('test-slider-max-value', async () => { let iconRect = await page.data('sliderRect') - let x = iconRect.x + 15 + let x = iconRect.x + 25 let y = iconRect.y + 15 // 滑动事件 -- GitLab