From e0cbecc79fd7e105d1ff9badc391690099c52f39 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Mon, 26 Aug 2024 10:30:49 +0200
Subject: [PATCH] change config

---
 alfa-client/apps/alfa-e2e/cypress.config.ts | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/alfa-client/apps/alfa-e2e/cypress.config.ts b/alfa-client/apps/alfa-e2e/cypress.config.ts
index 8b9ae40a50..21267ba661 100644
--- a/alfa-client/apps/alfa-e2e/cypress.config.ts
+++ b/alfa-client/apps/alfa-e2e/cypress.config.ts
@@ -10,18 +10,9 @@ export default defineConfig({
     ...nxE2EPreset(__dirname),
     ...cypressConfig,
     setupNodeEvents(on, config) {
-      on('after:spec', (spec: Cypress.Spec, results: CypressCommandLine.RunResult) => {
-        if (results && results.video) {
-          const failures = results.tests.some((test) =>
-            test.attempts.some((attempt) => attempt.state === 'failed'),
-          );
-          if (!failures) {
-            fs.unlinkSync(results.video);
-          }
-        }
-      });
       return cypressEvents(on, config);
     },
+    videoUploadOnPasses: false,
   },
   retries: {
     experimentalStrategy: 'detect-flake-and-pass-on-threshold',
-- 
GitLab