From bdca7943b1593c8367a2b2e5ae3eb858492a191f Mon Sep 17 00:00:00 2001 From: Ere Maijala Date: Thu, 24 Aug 2023 13:45:12 +0300 Subject: [PATCH] Fix selectors in tests. --- .../src/VuFindTest/Mink/SearchFacetsTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 ec8d89be4316..16806c6be81c 100644 --- a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/SearchFacetsTest.php +++ b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/SearchFacetsTest.php @@ -63,35 +63,35 @@ class SearchFacetsTest extends \VuFindTest\Integration\MinkTestCase * * @var string */ - protected $facetExpandSelector = '.facet-tree .facet-tree__icon-container .facet-tree__closed'; + protected $facetExpandSelector = '.facet-tree .facet-tree__toggle-open .facet-tree__closed'; /** * CSS selector for finding the first expanded hierarchical facet * * @var string */ - protected $facetExpandedSelector = '.facet-tree details[open]'; + protected $facetExpandedSelector = '.facet-tree button[aria-expanded=true] ~ ul'; /** * CSS selector for finding the first second level hierarchical facet * * @var string */ - protected $facetSecondLevelLinkSelector = '.facet-tree details[open] ul a'; + protected $facetSecondLevelLinkSelector = '.facet-tree button[aria-expanded=true] ~ ul a'; /** * CSS selector for finding the first active second level hierarchical facet * * @var string */ - protected $facetSecondLevelActiveLinkSelector = '.facet-tree details[open] ul a.active'; + protected $facetSecondLevelActiveLinkSelector = '.facet-tree button[aria-expanded=true] ~ ul a.active'; /** * CSS selector for finding the first second level hierarchical facet * * @var string */ - protected $facetSecondLevelExcludeLinkSelector = '.facet-tree details[open] ul a.exclude'; + protected $facetSecondLevelExcludeLinkSelector = '.facet-tree button[aria-expanded=true] ~ ul a.exclude'; /** * Get filtered search