未验证 提交 01f236ee 编写于 作者: O openharmony_ci 提交者: Gitee

!5340 增加uitest xts用例

Merge pull request !5340 from 周柯/master
......@@ -1161,5 +1161,31 @@ export default function UiTest() {
expect(text == null).assertTrue()
await stopApplication('com.uitestScene.acts')
})
/*
* @tc.number: uiTest_5800
* @tc.name: testSplit
* @tc.desc: change this UiWindow into split screen mode.
*/
it('testSplit', 0, async function () {
await startAbility('com.uitestScene.acts', 'com.uitestScene.acts.MainAbility')
let driver = UiDriver.create()
await driver.delayMs(waitUiReadyMs)
let window1 = await driver.findWindow({bundleName:'com.uitestScene.acts'})
try {
await window1.split()
await driver.delayMs(waitUiReadyMs)
let window2 = await driver.findWindow({bundleName:'com.ohos.systemui'})
expect(window2 == null).assertTrue()
}
catch (err) {
if (err.message == 'this device can not support this action') {
expect(window1 != null).assertTrue()
} else {
expect(false).assertTrue()
}
}
await stopApplication('com.uitestScene.acts')
})
})
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册