Merge pull request #77 from NoelDeMartin/MOBILE-3833

MOBILE-3833 behat: Fix config overrides on reload
main
Dani Palou 2022-03-15 10:46:03 +01:00 committed by GitHub
commit 90b1b6b4f7
1 changed files with 1 additions and 0 deletions

View File

@ -555,6 +555,7 @@ class behat_app extends behat_base {
// Prepare testing config. // Prepare testing config.
$configoverrides = json_encode($this->appconfig); $configoverrides = json_encode($this->appconfig);
$this->evaluate_script("document.cookie='MoodleAppConfig=$configoverrides'");
$this->evaluate_script("configProvider.patchEnvironment($configoverrides)"); $this->evaluate_script("configProvider.patchEnvironment($configoverrides)");
// Continue only after JS finishes. // Continue only after JS finishes.