提交 e0b1141f 编写于 作者: S sunjiakun

fixed 85cc7f0d from https://gitee.com/sunjiakun/xts_acts/pulls/9773

fix search xts failed item
Signed-off-by: Nsunjiakun <sunjiakun3@huawei.com>
上级 8732ee62
......@@ -2375,13 +2375,13 @@ export default function search() {
await Utils.sleep(2000);
let strJson = getInspectorByKey('searchTestNumber');
let strJson2 = getInspectorByKey('searchTestDefaultValue');
console.info("[ArkUI_Stage_Search_CancelButton_1300]: " + JSON.stringify(strJson))
let obj = JSON.parse(strJson);
let obj2 = JSON.parse(strJson2);
console.info("[ArkUI_Stage_Search_CancelButton_1300]: " + JSON.stringify(obj.$attrs.cancelButton));
console.info("[ArkUI_Stage_Search_CancelButton_1300]: " + JSON.stringify(obj.$attrs.cancelButton.icon.size));
let result : number = 0;
console.info("[ArkUI_Stage_Search_CancelButton_1300]: " + vp2px(result).toFixed(2));
expect(obj.$attrs.cancelButton.icon.size).assertEqual(vp2px(result).toFixed(2) + "px");
expect(obj.$attrs.cancelButton.icon.size).assertEqual(obj2.$attrs.cancelButton.icon.size);
console.info("[ArkUI_Stage_Search_CancelButton_1300] end");
done();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册