This commit is contained in:
Andrew Nicols 2020-04-17 18:35:10 +08:00
commit e74c253037
3 changed files with 321 additions and 171 deletions

View File

@ -13,7 +13,7 @@
"require-dev": {
"phpunit/phpunit": "7.5.*",
"phpunit/dbunit": "4.0.*",
"moodlehq/behat-extension": "3.39.1",
"moodlehq/behat-extension": "3.39.2",
"mikey179/vfsstream": "^1.6",
"instaclick/php-webdriver": "dev-local as 1.x-dev"
}

487
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -307,6 +307,9 @@ class behat_hooks extends behat_base {
$driverexceptionmsg = 'Selenium server is not running, you need to start it to run tests that involve Javascript. ' . $moreinfo;
try {
$session = $this->getSession();
if (!$session->isStarted()) {
$session->start();
}
} catch (CurlExec $e) {
// Exception thrown by WebDriver, so only @javascript tests will be caugth; in
// behat_util::check_server_status() we already checked that the server is running.