MDL-55071 behat: Adapting form_row selector to reflect recent changes

Labels are no longer used for static elements. The form row selector
has been changed to include "labels" from static elements.
This commit is contained in:
Frédéric Massart 2016-09-28 11:13:53 +02:00
parent 14d6945e65
commit a82c49473b

View File

@ -140,7 +140,7 @@ XPATH
.//*[contains(., %locator%) and not(.//*[contains(., %locator%)])]
XPATH
, 'form_row' => <<<XPATH
.//label[contains(., %locator%)]/ancestor::*[contains(concat(' ', @class, ' '), ' fitem ')]
.//*[self::label or self::div[contains(concat(' ', @class, ' '), ' fstaticlabel ')]][contains(., %locator%)]/ancestor::*[contains(concat(' ', @class, ' '), ' fitem ')]
XPATH
);