diff --git a/arkui/ace_ets_component_api/src/main/ets/test/BindMenu.test.ets b/arkui/ace_ets_component_api/src/main/ets/test/BindMenu.test.ets index 472faddad12ef90b935b39d2414a9ab08e704406..73ac5f535cfadce73c2b28a70552ff86caffd262 100644 --- a/arkui/ace_ets_component_api/src/main/ets/test/BindMenu.test.ets +++ b/arkui/ace_ets_component_api/src/main/ets/test/BindMenu.test.ets @@ -93,25 +93,9 @@ export default function BindMenuTest() { let CASE = 'ArkUI_Menu_0200' console.info(`${SUITE} ${CASE} START`); - - async function step2() { - let callback2 = (event) => { - expect(event.data.action).assertEqual('onDisappear'); - done(); - } - let event2 = { - eventId: 60003, - priority: events_emitter.EventPriority.LOW - } - events_emitter.on(event2, callback2); - let driver = Driver.create() - await driver.delayMs(waitUiReadyMs) - driver.click(100, 400) - } - let callback = (event) => { expect(event.data.action).assertEqual('onAppear'); - step2() + done() } let event = { eventId: 60002, diff --git a/arkui/ace_ets_component_api/src/main/ets/test/ListDelete.test.ets b/arkui/ace_ets_component_api/src/main/ets/test/ListDelete.test.ets index bb55adfdc59537170c087e245db66bef013b52b3..baf3601d994a019da3a443f12f21a0dcedbe332f 100644 --- a/arkui/ace_ets_component_api/src/main/ets/test/ListDelete.test.ets +++ b/arkui/ace_ets_component_api/src/main/ets/test/ListDelete.test.ets @@ -104,7 +104,7 @@ export default function ListDeleteTest() { let rectCenter = getRectCenterVp(obj.$rect) let driver = Driver.create() - await driver.swipe(rectCenter[0], rectCenter[1], 600, rectCenter[1]) + await driver.swipe(rectCenter[0] - 200, rectCenter[1], rectCenter[0] + 200, rectCenter[1]) let strJsonButtonDel = getInspectorByKey(baseKey + '_Button_Del'); let objButtonDel = JSON.parse(strJsonButtonDel); @@ -145,7 +145,7 @@ export default function ListDeleteTest() { } events_emitter.on(event, callback); let rectCenter = getRectCenter(obj.$rect) - await driver.swipe(Math.round(rectCenter[0]), Math.round(rectCenter[1]), + await driver.swipe(Math.round(rectCenter[0]) + 200, Math.round(rectCenter[1]), 0, Math.round(rectCenter[1])) console.info(`${SUITE} ${CASE} END`); });