From 3ecc564575158fd79fef271757c8666d0d9c67df Mon Sep 17 00:00:00 2001 From: Hynek Mlnarik Date: Wed, 15 May 2024 12:37:50 +0200 Subject: [PATCH] Remove the video file only if it exists Fixes: #29554 Signed-off-by: Hynek Mlnarik --- js/apps/admin-ui/cypress.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/apps/admin-ui/cypress.config.js b/js/apps/admin-ui/cypress.config.js index 6e342c69cd..9f8b1969eb 100644 --- a/js/apps/admin-ui/cypress.config.js +++ b/js/apps/admin-ui/cypress.config.js @@ -35,7 +35,7 @@ export default defineConfig({ if (!failures) { // delete the video if the spec passed and no tests retried - fs.unlinkSync(results.video); + fs.rmSync(results.video, { force: true }); } } }