Skip to content
Snippets Groups Projects
Verified Commit c38b85bf authored by Alexandre Dias's avatar Alexandre Dias
Browse files

ISAICP-9627: Replace trigger button.

parent 73f23f1c
No related branches found
No related tags found
1 merge request!215Release 2.3.2
...@@ -628,9 +628,9 @@ public function launchSearchFromHeader(string $keywords): void { ...@@ -628,9 +628,9 @@ public function launchSearchFromHeader(string $keywords): void {
// so we cannot fake the pressing of the Enter key. We will simply // so we cannot fake the pressing of the Enter key. We will simply
// redirect to the search page. // redirect to the search page.
$this->visitPath('/'); $this->visitPath('/');
$page = $this->getSession()->getPage(); $field = $this->getSession()->getPage()->findField('keys');
$page->fillField('keys', $keywords); $field->setValue($keywords);
$page->pressButton("Search site-wide"); $field->getParent()->getParent()->submit();
$this->assertCurrentUrl($this->locatePath('search?keys=' . $keywords)); $this->assertCurrentUrl($this->locatePath('search?keys=' . $keywords));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment