Skip to content

Commit

Permalink
MDL-76398 behat: broader action menu partial matching by element.
Browse files Browse the repository at this point in the history
For action menu elements whose trigger element isn't plain text
(e.g. a pix icon), we should be able to match via the title of
that element.
  • Loading branch information
paulholden committed Nov 21, 2022
1 parent f89a47e commit 375d8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/behat/classes/partial_named_selector.php
Expand Up @@ -145,7 +145,7 @@ public function __construct() {
descendant::*[
contains(concat(' ', normalize-space(@class), ' '), ' dropdown-toggle ')
and
contains(normalize-space(.), %locator%)
(contains(normalize-space(.), %locator%) or descendant::*[%titleMatch%])
]
]
XPATH
Expand Down

0 comments on commit 375d8ff

Please sign in to comment.