21461: Improves memory management when running tests in "open" mode. 21461-excessive-scrollbars-fix
authorLucas Di Pentima <lucas.dipentima@curii.com>
Tue, 5 Mar 2024 22:25:31 +0000 (19:25 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Tue, 5 Mar 2024 22:25:31 +0000 (19:25 -0300)
This couple of settings improve both Electron & Firefox behaviors when
running in "interactive" (open) mode.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

services/workbench2/cypress.config.ts

index aaeb876784b14ce9adcf46cb01ab16c6be90fc99..d5698b0bfb70e3f49fd8e92578686ad6f29fce30 100644 (file)
@@ -18,5 +18,8 @@ export default defineConfig({
     },
     baseUrl: 'https://localhost:3000/',
     experimentalRunAllSpecs: true,
+    // The 2 options below make Electron crash a lot less and Firefox behave better
+    experimentalMemoryManagement: true,
+    numTestsKeptInMemory: 0,
   },
 })