mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 00:20:37 +01:00
MDL-66559 behat: Update running suite
This commit is contained in:
parent
33da028c27
commit
cd5382b298
@ -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.
|
||||
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.
|
||||
@ -373,7 +374,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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user