cypress-documentation icon indicating copy to clipboard operation
cypress-documentation copied to clipboard

Clear description for "trashAssetsBeforeRun"

Open ItsWasteD opened this issue 1 year ago • 2 comments

Subject

Clear description for "trashAssetsBeforeRun"

Description

I already opened a discussion for this topic but I didn't get a response. https://github.com/cypress-io/cypress/discussions/28665

So my question is the following:

What exactly gets trashed if I set this configuration to true? Is it only image filetypes or everything within the folder specified? I ask this because I use a subfolder of the screenshot folder for a specific command so lets say I have a scheduled run that runs every day that uses "cypress/screenshots" as screenshot folder. Now I also have a run that run twice a day that uses "cypress/screenshots/otherRun" as screenshots folder. So will this folder get deleted every time the daily run executes? Or will only all images be deleted?

ItsWasteD avatar Jan 30 '24 08:01 ItsWasteD

I think technically we move the contents of the video and screenshots folder to trash. These docs could use some better clarity.

jennifer-shehane avatar Feb 02 '24 16:02 jennifer-shehane

Yeah but what folder exactly gets trashed? If I set the the folder to "cypress/screenshots/prod" will only the prod folder get deleted? Is it only the contents? Or will everything inside the screenshots folder get trashed?

ItsWasteD avatar Feb 02 '24 18:02 ItsWasteD