MDL-47410 behat: Create custom selector for the date and datetime fields

Creates a custom field selector to locate the requested date or datetime
form fields.
This commit is contained in:
Mihail Geshoski
2021-02-11 12:11:18 +08:00
parent 8844095259
commit eb0e5a1297
@@ -267,6 +267,9 @@ XPATH
.//descendant::span[@data-inplaceeditable][descendant::a[%titleMatch%]]
XPATH
,
'date_time' => <<<XPATH
.//fieldset[(%idMatch% or ./legend[%tagTextMatch%]) and (@data-fieldtype='date' or @data-fieldtype='date_time')]
XPATH
],
];