From b97899d00aa5111609a13f60fbe008614afb486c Mon Sep 17 00:00:00 2001 From: hekun Date: Thu, 24 Aug 2023 22:34:42 +0800 Subject: [PATCH] fix the gesture conflict Signed-off-by: hekun --- .../entry/src/main/ets/test/ListJsunit.test.ets | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arkui/ace_ets_component_ui/entry/src/main/ets/test/ListJsunit.test.ets b/arkui/ace_ets_component_ui/entry/src/main/ets/test/ListJsunit.test.ets index 5ec71c338..81ba18a04 100644 --- a/arkui/ace_ets_component_ui/entry/src/main/ets/test/ListJsunit.test.ets +++ b/arkui/ace_ets_component_ui/entry/src/main/ets/test/ListJsunit.test.ets @@ -98,7 +98,7 @@ export default function ListJsunit() { let gridRight = CommonFunc.getComponentRect('list'); let right = gridRight.right let driver = await UiDriver.create() - await driver.swipe(Math.round(top + 50), Math.round(right - 50), Math.round(bottom - 50), Math.round(right - 50)); + await driver.swipe(Math.round(top + 50), Math.round(right - 50), 20, Math.round(right - 50)); await CommonFunc.sleep(1000); let onScrollText = await driver.findComponent(BY.key('onScrollText')); @@ -135,12 +135,12 @@ export default function ListJsunit() { expect(text5).assertEqual('onScrollStop'); // Verify the functions of onReachEnd - await driver.swipe(Math.round(bottom - 50), Math.round(right - 50), Math.round(top + 50), Math.round(right - 50)); - await driver.swipe(Math.round(bottom - 50), Math.round(right - 50), Math.round(top + 50), Math.round(right - 50)); + await driver.swipe(Math.round(right), Math.round(top -100), 10, Math.round(top - 100)); + await driver.swipe(Math.round(right), Math.round(top -100), 10, Math.round(top - 100)); await CommonFunc.sleep(1000); - await driver.swipe(Math.round(bottom - 50), Math.round(right - 50), Math.round(top + 50), Math.round(right - 50)); - await driver.swipe(Math.round(bottom - 50), Math.round(right - 50), Math.round(top + 50), Math.round(right - 50)); - await driver.swipe(Math.round(bottom - 50), Math.round(right - 50), Math.round(top + 50), Math.round(right - 50)); + await driver.swipe(Math.round(right), Math.round(top -100), 10, Math.round(top - 100)); + await driver.swipe(Math.round(right), Math.round(top -100), 10, Math.round(top - 100)); + await driver.swipe(Math.round(right), Math.round(top -100), 10, Math.round(top - 100)); await CommonFunc.sleep(1000); let onReachEndText = await driver.findComponent(BY.key('onReachEndText')); let text= await onReachEndText.getText(); -- GitLab