diff --git a/arkXtest/uitest/src/main/ets/test/uitest.test.ets b/arkXtest/uitest/src/main/ets/test/uitest.test.ets index 159012fe1f1babc3535fd5077ed59d6c2a800286..a1065f77a1bb764cc1057015cfcf03497516fbb9 100644 --- a/arkXtest/uitest/src/main/ets/test/uitest.test.ets +++ b/arkXtest/uitest/src/main/ets/test/uitest.test.ets @@ -1542,8 +1542,8 @@ export default function UiTest() { try { await window1.split() await driver.delayMs(waitUiReadyMs) - let window2 = await driver.findWindow({bundleName:'com.ohos.systemui'}) - expect(window2 == null).assertTrue() + let bar = await driver.findComponent(ON.type('DecorBar')) + expect(bar == null).assertTrue() } catch (err) { if (err.message == 'this device can not support this action') {