From 27f41bf68c39f182a9aa70a15a2f3591ff67ca06 Mon Sep 17 00:00:00 2001 From: zhouke Date: Mon, 22 Aug 2022 11:56:44 +0800 Subject: [PATCH] modify.Signed-off-by: . Signed-off-by: zhouke --- arkXtest/uitest/src/main/ets/test/uitest.test.ets | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arkXtest/uitest/src/main/ets/test/uitest.test.ets b/arkXtest/uitest/src/main/ets/test/uitest.test.ets index efdc14afb..316eabaee 100644 --- a/arkXtest/uitest/src/main/ets/test/uitest.test.ets +++ b/arkXtest/uitest/src/main/ets/test/uitest.test.ets @@ -737,7 +737,7 @@ export default function UiTest() { expect(mode2 == WindowMode.FLOATING).assertTrue() await stopApplication('com.uitestScene.acts') } - catch(error){ + catch(err: any){ expect(window1 != null).assertTrue() await stopApplication('com.uitestScene.acts') } @@ -795,7 +795,7 @@ export default function UiTest() { expect(bounds1 != bounds2).assertTrue() await stopApplication('com.uitestScene.acts') } - catch(error){ + catch(err: any){ expect(window != null).assertTrue() await stopApplication('com.uitestScene.acts') } @@ -838,7 +838,7 @@ export default function UiTest() { expect(bounds5 != bounds4).assertTrue() await stopApplication('com.uitestScene.acts') } - catch(error){ + catch(err: any){ expect(window != null).assertTrue() await stopApplication('com.uitestScene.acts') } @@ -877,7 +877,7 @@ export default function UiTest() { await stopApplication('com.uitestScene.acts') } - catch(error){ + catch(err: any){ expect(window != null).assertTrue() await stopApplication('com.uitestScene.acts') } @@ -919,7 +919,7 @@ export default function UiTest() { expect(mode == WindowMode.FULLSCREEN).assertTrue() await stopApplication('com.uitestScene.acts') } - catch(error){ + catch(err: any){ expect(window != null).assertTrue() await stopApplication('com.uitestScene.acts') } @@ -942,7 +942,7 @@ export default function UiTest() { expect(window1 == null).assertTrue() await stopApplication('com.uitestScene.acts') } - catch(error){ + catch(err: any){ expect(window != null).assertTrue() await stopApplication('com.uitestScene.acts') } @@ -964,7 +964,7 @@ export default function UiTest() { let window1 = await driver.findWindow({bundleName:'com.uitestScene.acts'}) expect(window1 == null).assertTrue() } - catch(error){ + catch(err: any){ expect(window != null).assertTrue() await stopApplication('com.uitestScene.acts') } -- GitLab