MOBILE-3833 behat: Fix config overrides on reload

main
Noel De Martin 2022-03-15 10:39:33 +01:00
parent 0393487899
commit b5d2c11c15
1 changed files with 1 additions and 0 deletions

View File

@ -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.