未验证 提交 233adda7 编写于 作者: O openharmony_ci 提交者: Gitee

!5773 ActsOnAndOffScreenTest测试套失败用例适配

Merge pull request !5773 from chengxingzhen/cherry-pick-1664417049
......@@ -54,8 +54,11 @@ export default function OnAndOffScreenTest() {
async function slideScreen(TAG) {
console.log(TAG + "slideScreen start");
var driver = UiDriver.create();
await driver.swipe(1000, 3000, 1000, 500, 1200);
await driver.delayMs(500);
await driver.swipe(1000, 3000, 1000, 500, 1200).then((data) => {
console.log(TAG + "swipe : " + JSON.stringify(data));
}).catch((error) => {
console.log(TAG + "swipe error = " + JSON.stringify(error));
})
console.log(TAG + "slideScreen end");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册