mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
MDL-48926 behat: No expand form required in non-js mode
This commit is contained in:
parent
80ac8522cc
commit
20153f6308
@ -98,6 +98,10 @@ class behat_forms extends behat_base {
|
||||
* @return void
|
||||
*/
|
||||
protected function expand_all_fields() {
|
||||
// Expand only if JS mode, else not needed.
|
||||
if (!$this->running_javascript()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// We already know that we waited for the DOM and the JS to be loaded, even the editor
|
||||
// so, we will use the reduced timeout as it is a common task and we should save time.
|
||||
|
Loading…
x
Reference in New Issue
Block a user