From 26e2a3a6f022d3bbbc29b0745032ef45a6f3b423 Mon Sep 17 00:00:00 2001 From: Demian Katz Date: Thu, 23 Jan 2025 08:50:20 -0500 Subject: [PATCH] Improve test. --- .../integration-tests/src/VuFindTest/Mink/SearchFacetsTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/SearchFacetsTest.php b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/SearchFacetsTest.php index 773e9ec788f..8890d9b4966 100644 --- a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/SearchFacetsTest.php +++ b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/SearchFacetsTest.php @@ -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;