mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-45320 behat: change to block selector
This commit is contained in:
parent
deeaed4332
commit
f06daff29d
@ -96,11 +96,10 @@ XPATH
|
||||
normalize-space(descendant::div[@class='hd']) = %locator%]
|
||||
XPATH
|
||||
, 'block' => <<<XPATH
|
||||
//div[contains(concat(' ', normalize-space(@class), ' '), concat(' ', %locator%, ' '))] |
|
||||
//div[contains(concat(' ', normalize-space(@class), ' '), ' block ')]
|
||||
/descendant::h2[normalize-space(.) = %locator%]
|
||||
/ancestor::div[contains(concat(' ', normalize-space(@class), ' '), ' block ')] |
|
||||
//div[contains(concat(' ', normalize-space(@class), ' '), ' block ')][@aria-label = %locator% ]
|
||||
//div[contains(concat(' ', normalize-space(@class), ' '), ' block ') and
|
||||
(contains(concat(' ', normalize-space(@class), ' '), concat(' ', %locator%, ' ')) or
|
||||
descendant::h2[normalize-space(.) = %locator%] or
|
||||
@aria-label = %locator%)]
|
||||
XPATH
|
||||
, 'region' => <<<XPATH
|
||||
//*[self::div | self::section | self::aside | self::header | self::footer][./@id = %locator%]
|
||||
|
Loading…
x
Reference in New Issue
Block a user