From 71cabbdc04b793eab889205f9cbb003ac9624eda Mon Sep 17 00:00:00 2001
From: Nemanja Glumac <31325167+nemanjaglumac@users.noreply.github.com>
Date: Fri, 11 Aug 2023 14:46:58 +0200
Subject: [PATCH] Reduce number of tests stored in memory (#32868)

From the Cypress docs
https://docs.cypress.io/guides/references/configuration#Global

The number of tests for which snapshots and command data are kept in memory. Reduce this number if you are experiencing high memory consumption in your browser during a test run.

The default value is 50.
We're dialing it down to 1.
---
 e2e/support/config.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/e2e/support/config.js b/e2e/support/config.js
index 2d64fb6be68..75e7995f159 100644
--- a/e2e/support/config.js
+++ b/e2e/support/config.js
@@ -118,6 +118,7 @@ const mainConfig = {
   ...defaultConfig,
   viewportHeight: 800,
   viewportWidth: 1280,
+  numTestsKeptInMemory: 1,
   reporter: "mochawesome",
   reporterOptions: {
     reportDir: "cypress/reports/mochareports",
-- 
GitLab