I am trying to disable cypress screenshots, I have this in my cypress.json
:
{
"pluginsFile": "cypress/plugins/index.js",
"supportFile": "cypress/support/index.ts",
"video": false,
"screenshotOnRunFailure": false
}
But the screenshots are still happening.
The screenshot will be stored in the cypress/screenshots folder by default. You can change the directory where screenshots are saved in the Cypress configuration.
Cypress records a video for each spec file when running tests during cypress run . Videos are not automatically recorded during cypress open . Video recording can be turned off entirely by setting video to false from within your configuration.
You must set this option with Cypress.Screenshot.defaults()
.
In your cypress/support/index.js
file add
Cypress.Screenshot.defaults({
screenshotOnRunFailure: false
})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With