MDL-66559 behat: Update running suite
This commit is contained in:
@@ -317,6 +317,7 @@ class behat_hooks extends behat_base {
|
||||
|
||||
// Register behat selectors for theme, if suite is changed. We do it for every suite change.
|
||||
if ($suitename !== self::$runningsuite) {
|
||||
self::$runningsuite = $suitename;
|
||||
behat_context_helper::set_environment($scope->getEnvironment());
|
||||
|
||||
// We need the Mink session to do it and we do it only before the first scenario.
|
||||
@@ -368,7 +369,6 @@ class behat_hooks extends behat_base {
|
||||
// Set the theme if not default.
|
||||
if ($suitename !== "default") {
|
||||
set_config('theme', $suitename);
|
||||
self::$runningsuite = $suitename;
|
||||
}
|
||||
|
||||
// Reset the scenariorunning variable to ensure that Step 0 occurs.
|
||||
|
||||
Reference in New Issue
Block a user