提交 605adab2 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test(global-events): 优化测试例

上级 76633616
......@@ -267,11 +267,8 @@ describe('event trigger', () => {
expect(await longPressChangedTouchScreenX.text()).toBe(longPressTouchTargetValue)
const longPressChangedTouchScreenY = await page.$('#long-press-changed-touch-screen-y')
expect(await longPressChangedTouchScreenY.text()).toBe(longPressTouchTargetValue)
}
if (isAndroid || isIos) {
const longPressTouchTargetIdentifier = '1'
const longPressTouchTargetValue = '0'
if (isIos) {
// 规避系统授权弹框
await program.tap({
......@@ -328,6 +325,7 @@ describe('event trigger', () => {
expect(longPressChangedTouchScreenYText).toBeTruthy()
}
}
}
})
it('mock tap event', async () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册