Skip to content
Snippets Groups Projects
Commit 33d92029 authored by OZGCloud's avatar OZGCloud
Browse files

revert

parent e0cbecc7
Branches
Tags
No related merge requests found
......@@ -10,9 +10,18 @@ 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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment