From 36e1ba15f443dda9f3674cc9e107075f1612e47d Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Fri, 7 Jun 2024 10:38:23 +0800 Subject: [PATCH] =?UTF-8?q?test(general=20event):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../general-event/general-event.test.js | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/pages/component/general-event/general-event.test.js b/pages/component/general-event/general-event.test.js index f7e87612..e8c9393a 100644 --- a/pages/component/general-event/general-event.test.js +++ b/pages/component/general-event/general-event.test.js @@ -222,11 +222,25 @@ describe('event trigger sequence', () => { if (isAndroid || isIos) { if (isAndroid) { - await program.tap({ - x: 200, - y: 1000, - duration: 1000 - }) + if (platformInfo.indexOf('6') != -1) { + await program.tap({ + x: 200, + y: 700, + duration: 1000 + }) + } else if (platformInfo.indexOf('12') != -1) { + await program.tap({ + x: 300, + y: 1100, + duration: 1000 + }) + } else { + await program.tap({ + x: 200, + y: 1000, + duration: 1000 + }) + } } else if (isIos) { await program.tap({ x: 200, @@ -279,4 +293,4 @@ describe('event trigger sequence', () => { } } }) -}) +}) -- GitLab