Merge branch 'MDL-47410-39' of git://github.com/andrewnicols/moodle into MOODLE_39_STABLE

This commit is contained in:
Jun Pataleta
2021-02-18 11:29:51 +08:00
+7 -1
View File
@@ -268,7 +268,7 @@ XPATH
XPATH
,
'date_time' => <<<XPATH
.//fieldset[(%idMatch% or ./legend[%tagTextMatch%]) and (@data-fieldtype='date' or @data-fieldtype='date_time')]
.//fieldset[(%idMatch% or ./legend[%exactTagTextMatch%]) and (@data-fieldtype='date' or @data-fieldtype='date_time')]
XPATH
],
];
@@ -287,6 +287,12 @@ XPATH
'%ariaLabelMatch%' => [
'moodle' => 'contains(./@aria-label, %locator%)',
],
'%exactTagTextMatch%' => [
// This is based upon the upstream tagTextMatch but performs an exact match rather than a loose match using
// contains().
// If possible we should only use exact matches for any new form fields that we add.
'moodle' => 'normalize-space(text())=%locator%',
],
];
/** @var List of deprecated selectors */