提交 8b6b70ec 编写于 作者: DCloud_iOS_XHY's avatar DCloud_iOS_XHY

优化 slider-maxValue 测试例 模拟点击坐标点,适配 iOS12.4机型

上级 e029ecb6
...@@ -20,8 +20,13 @@ describe('rich-text-test', () => { ...@@ -20,8 +20,13 @@ describe('rich-text-test', () => {
it('richt-text-height', async () => { it('richt-text-height', async () => {
let beforeValue = await page.data('richTextHeight') let beforeValue = await page.data('richTextHeight')
if (beforeValue < 10) { if (beforeValue < 10) {
await page.waitFor(1000) await page.waitFor(2000)
beforeValue = await page.data('richTextHeight') beforeValue = await page.data('richTextHeight')
if (beforeValue < 10) {
await page.waitFor(2000)
beforeValue = await page.data('richTextHeight')
}
} }
await page.callMethod('changeText') await page.callMethod('changeText')
await page.waitFor(500) await page.waitFor(500)
......
...@@ -27,7 +27,7 @@ describe('touch-events-test', () => { ...@@ -27,7 +27,7 @@ describe('touch-events-test', () => {
it('test-slider-max-value', async () => { it('test-slider-max-value', async () => {
let iconRect = await page.data('sliderRect') let iconRect = await page.data('sliderRect')
let x = iconRect.x + 15 let x = iconRect.x + 25
let y = iconRect.y + 15 let y = iconRect.y + 15
// 滑动事件 // 滑动事件
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册