MOBILE-3833 behat: Fix config overrides on reload
parent
0393487899
commit
b5d2c11c15
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue