diff --git a/pages/component/rich-text/rich-text.test.js b/pages/component/rich-text/rich-text.test.js index 625aef505e5acb5609806fe215df9f8ee0c47e22..fe1314a825476fca63873ad654c28ef0ab76e605 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 bb03050d836f05dabd2395944d8a020362927524..b1c6c049a3721c8478b2f019f42023db7eeb1311 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 // 滑动事件