I can't delete the recorded video if the spec is passed
See original GitHub issueCurrent behavior
I followed this steps to remove recorded video for the spec file but it doesn’t be removed https://docs.cypress.io/api/plugins/after-spec-api#Delete-the-recorded-video-if-the-spec-passed
all tests are passed but the recorded video in cypress/videos not removed
Desired behavior
I want to delete the recorded video if the spec file is passed
Test code to reproduce
1- I run “npm i del --save-dev” in terminal 2-I added this to plugin/index
const del = require('del')
module.exports = (on, config) => {
on('after:spec', (spec, results) => {
if (results && results.stats.failures === 0 && results.video) {
return del(results.video)
}
})
}
3-I run the tests in headles mode via this script “run-tests-headless”: “cypress run --spec cypress/integration/login.spec.js”
Cypress Version
9.0.0
Other
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Cypress-Delete the recorded video if the spec passed & no ...
In this video I've shown how to : -1. Delete the recorded video if the spec passed and2. Delete the recorded video if...
Read more >Screenshots and Videos - Cypress Documentation
The example below shows how to delete the recorded video for specs that had no retry attempts or failures when using Cypress test...
Read more >Video Will Not Delete - Microsoft Community
I accidentally made a copy of one of the videos and for what ever reason, I cannot delete it.
Read more >Everything you need to know about deleted and overwritten ...
No. Deletion is always manual (footage intentionally deleted to hide any crime) but previously recorded footage can automatically be removed or ...
Read more >How to Permanently Delete All Recorded Videos
Navigate to your Timeline, and select the event. · Tap the video preview to enter the video player. · Below, tap for the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Could you share the solution?
it is solved thanks