From bc56d4813bd4f0eda5c5ad6ecda13ef79e9883fc Mon Sep 17 00:00:00 2001 From: zhouke Date: Wed, 26 Oct 2022 16:49:18 +0800 Subject: [PATCH] modify .Signed-off-by: . Signed-off-by: zhouke --- arkXtest/uitest/src/main/ets/test/uitest.test.ets | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arkXtest/uitest/src/main/ets/test/uitest.test.ets b/arkXtest/uitest/src/main/ets/test/uitest.test.ets index b77bb2554..159012fe1 100644 --- a/arkXtest/uitest/src/main/ets/test/uitest.test.ets +++ b/arkXtest/uitest/src/main/ets/test/uitest.test.ets @@ -1373,7 +1373,6 @@ export default function UiTest() { let driver = Driver.create() await driver.delayMs(waitUiReadyMs) await driver.setDisplayRotation(DisplayRotation.ROTATION_180) - await driver.delayMs(2000) let rotation = await driver.getDisplayRotation() if (rotation == DisplayRotation.ROTATION_180) { console.info('The device is displayed in vertical on default') @@ -1429,8 +1428,6 @@ export default function UiTest() { let driver = Driver.create() await driver.setDisplayRotation(DisplayRotation.ROTATION_180) let rotation = await driver.getDisplayRotation() - await driver.setDisplayRotation(DisplayRotation.ROTATION_180) - await driver.delayMs(waitUiReadyMs) await driver.setDisplayRotationEnabled(true) await driver.setDisplayRotation(DisplayRotation.ROTATION_90) await driver.delayMs(waitUiReadyMs) @@ -1443,6 +1440,7 @@ export default function UiTest() { expect(rotation2 == DisplayRotation.ROTATION_0) console.info('The device is displayed in horizontal on default') } + await stopApplication('com.uitestScene.acts') }) /* -- GitLab