From 9d1d41348f4b98dd1248adb220618ca2dfa79644 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Wed, 29 Jun 2022 12:17:57 +0200 Subject: [PATCH] MOBILE-4110 behat: Fix configuration overrides --- src/testing/services/behat-runtime.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testing/services/behat-runtime.ts b/src/testing/services/behat-runtime.ts index 554ae6a7d..369683109 100644 --- a/src/testing/services/behat-runtime.ts +++ b/src/testing/services/behat-runtime.ts @@ -75,7 +75,7 @@ export class TestingBehatRuntime { if (options.configOverrides) { // Set the cookie so it's maintained between reloads. document.cookie = 'MoodleAppConfig=' + JSON.stringify(options.configOverrides); - CoreConfig.patchEnvironment(options.configOverrides); + CoreConfig.patchEnvironment(options.configOverrides, { patchDefault: true }); } }