diff --git a/alfa-client/apps/alfa-e2e/src/support/cypress-tasks.ts b/alfa-client/apps/alfa-e2e/src/support/cypress-tasks.ts index a82b4f736601daf7f1b3164cbb45818a609e29de..827b7b3d31d21f7c991796b5256302ae28354466 100644 --- a/alfa-client/apps/alfa-e2e/src/support/cypress-tasks.ts +++ b/alfa-client/apps/alfa-e2e/src/support/cypress-tasks.ts @@ -67,6 +67,13 @@ module.exports = (on: any, config: any) => { }, }); + on('after:spec', (spec: Cypress.Spec, results: CypressCommandLine.RunResult) => { + if (results && results.video && results.stats.failures === 0) { + console.log(`Delete recorded video because spec passed: ${results.video}`); + fs.unlinkSync(results.video); + } + }); + // Workaround für Angular 13 und Cypress mit Webpack 4, // Siehe https://github.com/cypress-io/cypress/issues/19066#issuecomment-1012055705 // Entfernen, sobald Cypress Webpack 5 nutzt - https://github.com/cypress-io/cypress/issues/19555 diff --git a/alfa-client/package-lock.json b/alfa-client/package-lock.json index 8945df22fc8c94eac9c02663aee4892aa033906a..b551b3e5a341ab04c060b67cf3b84a262f0e74d4 100644 --- a/alfa-client/package-lock.json +++ b/alfa-client/package-lock.json @@ -1,12 +1,12 @@ { "name": "alfa", - "version": "0.9.0-SNAPSHOT", + "version": "1.0.0-SNAPSHOT", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "alfa", - "version": "0.9.0-SNAPSHOT", + "version": "1.0.0-SNAPSHOT", "license": "MIT", "dependencies": { "@angular/animations": "17.3.10", diff --git a/alfa-client/package.json b/alfa-client/package.json index fe89e4b34f2d4a287e07754f0244462d4fec01e1..e1523dd25e7b7786a77adf6d0fe52760d69516fe 100644 --- a/alfa-client/package.json +++ b/alfa-client/package.json @@ -1,6 +1,6 @@ { "name": "alfa", - "version": "0.9.0-SNAPSHOT", + "version": "1.0.0-SNAPSHOT", "license": "MIT", "scripts": { "start": "nx run alfa:serve --port 4300 --disable-host-check",