diff --git a/tests/behat/behat_app.php b/tests/behat/behat_app.php index 7f304be58..2419ae4b9 100644 --- a/tests/behat/behat_app.php +++ b/tests/behat/behat_app.php @@ -555,6 +555,7 @@ class behat_app extends behat_base { // Prepare testing config. $configoverrides = json_encode($this->appconfig); + $this->evaluate_script("document.cookie='MoodleAppConfig=$configoverrides'"); $this->evaluate_script("configProvider.patchEnvironment($configoverrides)"); // Continue only after JS finishes.