Skip to content

Commit

Permalink
Fix selectors in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala committed Aug 24, 2023
1 parent 44fd84b commit bdca794
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bdca794

Please sign in to comment.