Redesign listing search [MAILPOET-2778]

This commit is contained in:
wxa
2020-06-29 13:55:44 +03:00
committed by Veljko V
parent 73db70c335
commit 6faf149e15
5 changed files with 29 additions and 16 deletions

View File

@ -190,12 +190,12 @@ class AcceptanceTester extends \Codeception\Actor {
expect($attributeValue)->notContains($notContains);
}
public function searchFor($query, $element = '#search_input', $button = 'Search') {
public function searchFor($query, $element = '#search_input') {
$i = $this;
$i->waitForElement($element);
$i->waitForElementNotVisible(self::LISTING_LOADING_SELECTOR);
$i->fillField($element, $query);
$i->click($button);
$i->pressKey($element, \WebDriverKeys::ENTER);
$i->waitForElementNotVisible(self::LISTING_LOADING_SELECTOR);
}