MDL-43404 behat: Avoid failures at framework level as much as possible
authorDavid Monllao <davidm@moodle.com>
Thu, 19 Dec 2013 07:48:03 +0000 (15:48 +0800)
committerDavid Monllao <davidm@moodle.com>
Thu, 19 Dec 2013 07:48:03 +0000 (15:48 +0800)
commitf49cede7943cabfcbfa0293f71d97b219fdc70b2
tree6c3e12fcf90e16800af1bae289cc6f4db5487928
parenta0e11687513e33e25f773b3cf49a21307c0aae71
MDL-43404 behat: Avoid failures at framework level as much as possible

- Move them to i_look_for_exceptions() so they will be
  thrown at a step (scenario) level.
- Accept alerts only when they are detected to avoid
  all the following scenarios to be failing; they would
  continue executing, but they will all fail if the alert
  is still there
- Add a step to avoid add_scorm.feature to fail
- Refine the UnknownError catch
lib/tests/behat/behat_hooks.php
mod/scorm/tests/behat/add_scorm.feature