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 }); } }