mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-70397 behat: Prevent browser restarting after initial start
This commit is contained in:
parent
f34b44674f
commit
aba763fdc0
1 changed files with 10 additions and 1 deletions
|
@ -328,7 +328,6 @@ EOF;
|
||||||
// The `before_subsequent_scenario_start_session` function will restart the session instead.
|
// The `before_subsequent_scenario_start_session` function will restart the session instead.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
self::$firstjavascriptscenarioseen = true;
|
|
||||||
|
|
||||||
$docsurl = behat_command::DOCS_URL;
|
$docsurl = behat_command::DOCS_URL;
|
||||||
$driverexceptionmsg = <<<EOF
|
$driverexceptionmsg = <<<EOF
|
||||||
|
@ -475,6 +474,16 @@ EOF;
|
||||||
$this->resize_window('medium');
|
$this->resize_window('medium');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Mark the first Javascript Scenario as have been seen.
|
||||||
|
*
|
||||||
|
* @BeforeScenario
|
||||||
|
* @param BeforeScenarioScope $scope scope passed by event fired before scenario.
|
||||||
|
*/
|
||||||
|
public function mark_first_js_scenario_as_seen(BeforeScenarioScope $scope) {
|
||||||
|
self::$firstjavascriptscenarioseen = true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hook to open the site root before the first step in the suite.
|
* Hook to open the site root before the first step in the suite.
|
||||||
* Yes, this is in a strange location and should be in the BeforeScenario hook, but failures in the test setUp lead
|
* Yes, this is in a strange location and should be in the BeforeScenario hook, but failures in the test setUp lead
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue