diff --git a/pages/component/slider/slider-maxValue.test.js b/pages/component/slider/slider-maxValue.test.js index e987948626a60c441e64526f3719ee1daf420c7b..1d5939bd5c7074fd23ca080c56236bda475ff2e3 100644 --- a/pages/component/slider/slider-maxValue.test.js +++ b/pages/component/slider/slider-maxValue.test.js @@ -44,5 +44,21 @@ describe('touch-events-test', () => { await page.waitFor(600); const ret = await page.data('sliderValue') expect(ret).toBe(10) + }) + + it('test-slider-click', async () => { + + let iconRect = await page.data('sliderRect') + let x = iconRect.x + 100 + let y = iconRect.y + iconRect.height / 2.0 + + // 点击事件 + await program.tap( + {x: x, y: y} + ) + + await page.waitFor(600); + const ret = await page.data('sliderValue') + expect(ret).toBeLessThan(10) }) })