mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
MDL-66559 behat: Update running suite
This commit is contained in:
parent
33da028c27
commit
cd5382b298
1 changed files with 1 additions and 1 deletions
|
@ -322,6 +322,7 @@ class behat_hooks extends behat_base {
|
||||||
|
|
||||||
// Register behat selectors for theme, if suite is changed. We do it for every suite change.
|
// Register behat selectors for theme, if suite is changed. We do it for every suite change.
|
||||||
if ($suitename !== self::$runningsuite) {
|
if ($suitename !== self::$runningsuite) {
|
||||||
|
self::$runningsuite = $suitename;
|
||||||
behat_context_helper::set_environment($scope->getEnvironment());
|
behat_context_helper::set_environment($scope->getEnvironment());
|
||||||
|
|
||||||
// We need the Mink session to do it and we do it only before the first scenario.
|
// We need the Mink session to do it and we do it only before the first scenario.
|
||||||
|
@ -373,7 +374,6 @@ class behat_hooks extends behat_base {
|
||||||
// Set the theme if not default.
|
// Set the theme if not default.
|
||||||
if ($suitename !== "default") {
|
if ($suitename !== "default") {
|
||||||
set_config('theme', $suitename);
|
set_config('theme', $suitename);
|
||||||
self::$runningsuite = $suitename;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset the scenariorunning variable to ensure that Step 0 occurs.
|
// Reset the scenariorunning variable to ensure that Step 0 occurs.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue