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

!9806 [textSelection]修复ActsAceEtsComponentUITest测试套中textArea组件fail项

Merge pull request !9806 from tengfan/fix_ui_textArea
......@@ -182,11 +182,15 @@ export default function textAreaJsunit() {
await text.longClick();
await CommonFunc.sleep(1000);
let allSelect = await driver.findComponent(BY.text('全选'));
if (allSelect != null) {
await allSelect.click();
await CommonFunc.sleep(1000);
}
let copy = await driver.findComponent(BY.text('复制'));
if (copy != null) {
await copy.click();
await CommonFunc.sleep(1000);
}
let textIn = await driver.findComponent(BY.key('copy'));
let txt = await textIn.getText();
console.info('textAreaJsunit_0900 component obj is: ' + txt);
......@@ -196,8 +200,10 @@ export default function textAreaJsunit() {
await text.longClick();
await CommonFunc.sleep(1000);
let paste = await driver.findComponent(BY.text('粘贴'));
if (paste != null) {
await paste.click();
await CommonFunc.sleep(1000);
}
let textPaste = await driver.findComponent(BY.key('paste'));
let text1 = await textPaste.getText();
console.info('textAreaJsunit_0900 text1: ' + text1);
......@@ -216,11 +222,15 @@ export default function textAreaJsunit() {
await textArea.longClick();
await CommonFunc.sleep(1000);
let allSelect = await driver.findComponent(BY.text('全选'));
if (allSelect != null) {
await allSelect.click();
await CommonFunc.sleep(1000);
}
let cutComponent = await driver.findComponent(BY.text('剪切'));
if (cutComponent != null) {
await cutComponent.click();
await CommonFunc.sleep(1000);
}
let textCut = await driver.findComponent(BY.key('cut'));
let text = await textCut.getText();
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.
先完成此消息的编辑!
想要评论请 注册