diff --git a/smoke-test/tests/cypress/cypress.config.js b/smoke-test/tests/cypress/cypress.config.js index 78ac6281723506..05413702ebc877 100644 --- a/smoke-test/tests/cypress/cypress.config.js +++ b/smoke-test/tests/cypress/cypress.config.js @@ -12,6 +12,7 @@ module.exports = defineConfig({ openMode: 0, }, video: false, + experimentalMemoryManagement: true, e2e: { // We've imported your old cypress plugins here. // You may want to clean this up later by importing these. diff --git a/smoke-test/tests/cypress/integration_test.py b/smoke-test/tests/cypress/integration_test.py index b1cfd147fff660..5d3e511c5d8dc2 100644 --- a/smoke-test/tests/cypress/integration_test.py +++ b/smoke-test/tests/cypress/integration_test.py @@ -262,8 +262,8 @@ def test_run_cypress(auth_session): test_spec_arg = f" --spec '{specs_str}' " print("Running Cypress tests with command") - node_options = "--max-old-space-size=6000" - command = f'NO_COLOR=1 NODE_OPTIONS="{node_options}" npx cypress run {record_arg} {test_spec_arg} {tag_arg} --config numTestsKeptInMemory=2' + node_options = "--max-old-space-size=8000" + command = f'NO_COLOR=1 NODE_OPTIONS="{node_options}" npx cypress run {record_arg} {test_spec_arg} {tag_arg} --config numTestsKeptInMemory=0' print(command) # Add --headed --spec '**/mutations/mutations.js' (change spec name) # in case you want to see the browser for debugging