Skip to content

Commit

Permalink
Improve test.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Jan 23, 2025
1 parent 56e11a7 commit 26e2a3a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1444,8 +1444,9 @@ public function testMultiSelectOnAdvancedSearch(bool $changeLanguage, bool $incl
$this->findCssAndGetText($page, '.adv_search_terms strong')
);

// Make sure we have the expected number of filters applied:
// Make sure we have the expected number of filters applied on screen and in the URL query:
$this->assertCount(2, $page->findAll('css', '.facet.active'));
$this->assertCount($includeCheckbox ? 1 : 0, $page->findAll('css', '.checkbox-filter [data-checked="true"]'));
$query = parse_url($session->getCurrentUrl(), PHP_URL_QUERY);
parse_str($query, $queryArray);
$expectedFilterCount = $includeCheckbox ? 3 : 2;
Expand Down

0 comments on commit 26e2a3a

Please sign in to comment.