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

!8370 【ACE子系统】修改UI测试套TextPicker中重复key值

Merge pull request !8370 from 王旭鹏/master
...@@ -60,7 +60,7 @@ struct TextPickerPage { ...@@ -60,7 +60,7 @@ struct TextPickerPage {
this.getValue = value this.getValue = value
this.getIndex = index this.getIndex = index
}) })
Text(this.getValue + ': ' + this.getIndex.toString()).fontSize(20).key('text') Text(this.getValue + ': ' + this.getIndex.toString()).fontSize(20).key('textContent1')
} }
} }
} }
\ No newline at end of file
...@@ -61,7 +61,7 @@ export default function TextPickerJsunit() { ...@@ -61,7 +61,7 @@ export default function TextPickerJsunit() {
// Get the content of Initial value // Get the content of Initial value
let driver = await UiDriver.create() let driver = await UiDriver.create()
let strJson1 = getInspectorByKey('text'); let strJson1 = getInspectorByKey('textContent1');
let obj1 = JSON.parse(strJson1); let obj1 = JSON.parse(strJson1);
console.info("[TextPickerJsunit_0100] obj1: " + JSON.stringify(obj1)); console.info("[TextPickerJsunit_0100] obj1: " + JSON.stringify(obj1));
expect(obj1.$attrs.content).assertEqual('value: 0'); expect(obj1.$attrs.content).assertEqual('value: 0');
...@@ -110,7 +110,7 @@ export default function TextPickerJsunit() { ...@@ -110,7 +110,7 @@ export default function TextPickerJsunit() {
await CommonFunc.sleep(1000); await CommonFunc.sleep(1000);
let driver = await UiDriver.create() let driver = await UiDriver.create()
await driver.swipe(Math.round(right / 2), Math.round(bottom * 2 / 3), Math.round(right / 2), Math.round(bottom / 3)); await driver.swipe(Math.round(right / 2), Math.round(bottom * 2 / 3), Math.round(right / 2), Math.round(bottom / 3));
let strJson = getInspectorByKey('text'); let strJson = getInspectorByKey('textContent1');
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
console.info("[TextPickerJsunit_0300] obj: " + JSON.stringify(obj)); console.info("[TextPickerJsunit_0300] obj: " + JSON.stringify(obj));
expect(obj.$attrs.content == 'value: 0').assertFalse(); expect(obj.$attrs.content == 'value: 0').assertFalse();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册