提交 0d94fff0 编写于 作者: T tengfan66 提交者: tengfan

fixed c0754fdf from https://gitee.com/tengfan66/xts_acts/pulls/9806

fix xts_ui_textarea_failed_items
Signed-off-by: Ntengfan66 <tengfan3@huawei.com>
上级 7602afb8
...@@ -182,11 +182,15 @@ export default function textAreaJsunit() { ...@@ -182,11 +182,15 @@ export default function textAreaJsunit() {
await text.longClick(); await text.longClick();
await CommonFunc.sleep(1000); await CommonFunc.sleep(1000);
let allSelect = await driver.findComponent(BY.text('全选')); let allSelect = await driver.findComponent(BY.text('全选'));
await allSelect.click(); if (allSelect != null) {
await CommonFunc.sleep(1000); await allSelect.click();
await CommonFunc.sleep(1000);
}
let copy = await driver.findComponent(BY.text('复制')); let copy = await driver.findComponent(BY.text('复制'));
await copy.click(); if (copy != null) {
await CommonFunc.sleep(1000); await copy.click();
await CommonFunc.sleep(1000);
}
let textIn = await driver.findComponent(BY.key('copy')); let textIn = await driver.findComponent(BY.key('copy'));
let txt = await textIn.getText(); let txt = await textIn.getText();
console.info('textAreaJsunit_0900 component obj is: ' + txt); console.info('textAreaJsunit_0900 component obj is: ' + txt);
...@@ -196,8 +200,10 @@ export default function textAreaJsunit() { ...@@ -196,8 +200,10 @@ export default function textAreaJsunit() {
await text.longClick(); await text.longClick();
await CommonFunc.sleep(1000); await CommonFunc.sleep(1000);
let paste = await driver.findComponent(BY.text('粘贴')); let paste = await driver.findComponent(BY.text('粘贴'));
await paste.click(); if (paste != null) {
await CommonFunc.sleep(1000); await paste.click();
await CommonFunc.sleep(1000);
}
let textPaste = await driver.findComponent(BY.key('paste')); let textPaste = await driver.findComponent(BY.key('paste'));
let text1 = await textPaste.getText(); let text1 = await textPaste.getText();
console.info('textAreaJsunit_0900 text1: ' + text1); console.info('textAreaJsunit_0900 text1: ' + text1);
...@@ -216,11 +222,15 @@ export default function textAreaJsunit() { ...@@ -216,11 +222,15 @@ export default function textAreaJsunit() {
await textArea.longClick(); await textArea.longClick();
await CommonFunc.sleep(1000); await CommonFunc.sleep(1000);
let allSelect = await driver.findComponent(BY.text('全选')); let allSelect = await driver.findComponent(BY.text('全选'));
await allSelect.click(); if (allSelect != null) {
await CommonFunc.sleep(1000); await allSelect.click();
await CommonFunc.sleep(1000);
}
let cutComponent = await driver.findComponent(BY.text('剪切')); let cutComponent = await driver.findComponent(BY.text('剪切'));
await cutComponent.click(); if (cutComponent != null) {
await CommonFunc.sleep(1000); await cutComponent.click();
await CommonFunc.sleep(1000);
}
let textCut = await driver.findComponent(BY.key('cut')); let textCut = await driver.findComponent(BY.key('cut'));
let text = await textCut.getText(); let text = await textCut.getText();
console.info('textAreaJsunit_1000 component obj is: ' + text); console.info('textAreaJsunit_1000 component obj is: ' + text);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册