mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-60975 behat tests: Added search for admin setting filepickers
This commit is contained in:
parent
800563e415
commit
4805a5b96f
@ -204,12 +204,15 @@ class behat_repository_upload extends behat_base {
|
||||
$exception
|
||||
);
|
||||
} else {
|
||||
// Gets the filemanager node specified by the locator which contains the filepicker container.
|
||||
// Gets the filemanager node specified by the locator which contains the filepicker container
|
||||
// either for filepickers created by mform or by admin config.
|
||||
$filepickerelement = behat_context_helper::escape($filepickerelement);
|
||||
$filepickercontainer = $this->find(
|
||||
'xpath',
|
||||
"//input[./@id = //label[normalize-space(.)=$filepickerelement]/@for]" .
|
||||
"//ancestor::div[contains(concat(' ', normalize-space(@class), ' '), ' felement ')]",
|
||||
"//ancestor::div[contains(concat(' ', normalize-space(@class), ' '), ' felement ')] |" .
|
||||
"//input[./@id = //label[normalize-space(.)=$filepickerelement]/@for]" .
|
||||
"//ancestor::div[contains(concat(' ', normalize-space(@class), ' '), ' form-setting ')]",
|
||||
$exception
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user