MDL-48318 behat: Fixed JS Exception
commita9326881bf0c3a4de88c7884ec370ba714dfb5e6
authorRajesh Taneja <rajesh@moodle.com>
Fri, 5 Dec 2014 03:47:08 +0000 (5 11:47 +0800)
committerSimey Lameze <simey@moodle.com>
Fri, 5 Dec 2014 03:49:50 +0000 (5 11:49 +0800)
treedf77ab12e698f1c32cbccaf6a7667f2a7aaeeb4d
parentab3effc0c682e3e0a0b6ffe191a870d05ec90ba8
MDL-48318 behat: Fixed JS Exception

M is not created on all pages, like cron and
Steps which check for exported data. So we need
to ensure M is defined, before using it in
behat_hooks::wait_for_pending_js()
lib/tests/behat/behat_hooks.php