Skip to content

Commit b806482

Browse files
author
Dmytro Bursak
committed
MTA-2319: [PS] Backend module functional tests maintenance
- Corrected set value for global search element
1 parent 0d704b9 commit b806482

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

dev/tests/functional/lib/Magento/Mtf/Client/Element/GlobalsearchElement.php

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
*/
1515
class GlobalsearchElement extends SimpleElement
1616
{
17-
/**
18-
* "Backspace" key code.
19-
*/
20-
const BACKSPACE = "\xEE\x80\x83";
21-
2217
/**
2318
* Search icon selector.
2419
*
@@ -67,24 +62,10 @@ public function setValue($value)
6762
if (!$this->find($this->searchInput)->isVisible()) {
6863
$this->find($this->searchIcon)->click();
6964
}
70-
$this->clear();
71-
$this->find($this->searchInput)->setValue($value);
65+
$this->find($this->searchInput)->keys(str_split($value));
7266
$this->waitResult();
7367
}
7468

75-
/**
76-
* Clear value of element.
77-
*
78-
* @return void
79-
*/
80-
protected function clear()
81-
{
82-
$element = $this->find($this->searchInput);
83-
while ('' != $element->getValue()) {
84-
$element->setValue([self::BACKSPACE]);
85-
}
86-
}
87-
8869
/**
8970
* Wait init search suggest container.
9071
*

0 commit comments

Comments
 (0)