提交 97b62b8b 编写于 作者: Z zhouke

uitest测试套hap包tokenId异常修复.Signed-off-by: <zhouke35@huawei.com>.

Signed-off-by: Nzhouke <zhouke35@huawei.com>
上级 3d70e498
......@@ -243,6 +243,7 @@ export default function UiTest() {
await driver.delayMs(waitUiReadyMs)
let input_new = await driver.findComponent(BY.type('TextInput'))
let text = await input_new.getText()
console.info("testInputText result :" + text)
expect(text == '123').assertTrue()
await stopApplication('com.uitestScene.acts')
})
......@@ -599,6 +600,7 @@ export default function UiTest() {
await driver.delayMs(waitUiReadyMs)
let input_new = await driver.findComponent(ON.type('TextInput'))
let text = await input_new.getText()
console.info("testInputText result :" + text)
expect(text == '123').assertTrue()
await stopApplication('com.uitestScene.acts')
})
......@@ -619,6 +621,7 @@ export default function UiTest() {
await driver.delayMs(waitUiReadyMs)
let input_new = await driver.findComponent(ON.type('TextInput'))
let text = await input_new.getText()
console.info("testClearText result :" + text)
expect(text).assertEqual('')
await stopApplication('com.uitestScene.acts')
})
......@@ -981,6 +984,7 @@ export default function UiTest() {
await driver.triggerCombineKeys(2072, 2019)
await driver.triggerCombineKeys(2072, 2038)
let text2 = await driver.findComponent(ON.type('TextInput'))
console.info("testTriggerCombineKeys result :" + text2)
expect(await text2.getText() == '123123').assertTrue()
await stopApplication('com.uitestScene.acts')
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册