MDL-59882 behat: Add newer modal type to selectors

This commit is contained in:
Andrew Nicols
2017-10-02 12:43:16 +08:00
parent 23ab0d7788
commit 434d7869df
@@ -131,6 +131,8 @@ XPATH
]) = %locator%] |
.//div[contains(concat(' ', normalize-space(@class), ' '), ' yui-dialog ') and
normalize-space(descendant::div[@class='hd']) = %locator%]
|
.//div[@data-region='modal' and descendant::*[@data-region='title'] = %locator%]
XPATH
, 'icon' => <<<XPATH
.//*[contains(concat(' ', normalize-space(@class), ' '), ' icon ') and ( contains(normalize-space(@title), %locator%))]