Skip to content

Commit 9753727

Browse files
puneet0191javigomez
authored andcommitted
Fixing Search Filter Changes in System Tests
Now Filters appear when we click on Search Tool button, hence modified the function to work accordingly. Closes #7341
1 parent c02a07f commit 9753727

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/system/webdriver/Pages/System/AdminManagerPage.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,18 @@ public function searchFor($search = false)
202202

203203
public function setFilter($idOrLabel, $value)
204204
{
205+
$el = $this->driver->findElements(By::xPath("//button"));
206+
foreach($el as $element)
207+
{
208+
if ($element->getAttribute('data-original-title') == 'Filter the list items.')
209+
{
210+
$element->click();
211+
if($value == 'Select Status')
212+
{
213+
$element->click();
214+
}
215+
}
216+
}
205217
$filters = array_change_key_case($this->filters, CASE_LOWER);
206218
$idOrLabel = strtolower($idOrLabel);
207219
$filterId = '';

0 commit comments

Comments
 (0)