Skip to content

Commit

Permalink
MDL-49110 behat: No expand form required in non-js mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed Feb 6, 2015
1 parent bd8926f commit 6da3248
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/tests/behat/behat_forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ public function i_expand_all_fieldsets() {
* @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.
Expand Down

0 comments on commit 6da3248

Please sign in to comment.