Replies: 2 comments
-
I added "del": "^6.0.0", and also |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is what I am using in our const storeTestVideo = process.env['CYPRESS_VIDEO_UPLOAD_ON_PASSES'] === undefined
|| process.env['CYPRESS_VIDEO_UPLOAD_ON_PASSES'] == 'true';
on('after:spec', (spec, results) => {
if (!storeTestVideo && results.stats.failures === 0 && results.video) {
fs.unlinkSync(results.video);
}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have "@bahmutov/cypress-extends": "^1.1.0",
and am not using cypress.json am using a base.json instead with values
"retries": 3,
"responseTimeout": 120000,
"defaultCommandTimeout": 120000,
"pageLoadTimeout": 120000,
"timeout": 1200000,
"videoUploadOnPasses":false,
"viewportWidth": 1280,
"viewportHeight": 720,
"chromeWebSecurity": false,
"reporter": "cypress-teamcity-reporter"
I am not able to generate videos only on failures. Videos are generated on success as well. What am I doing wrong?
Please help
Beta Was this translation helpful? Give feedback.
All reactions