Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear description for "trashAssetsBeforeRun" #5618

Open
ItsWasteD opened this issue Jan 30, 2024 · 2 comments
Open

Clear description for "trashAssetsBeforeRun" #5618

ItsWasteD opened this issue Jan 30, 2024 · 2 comments

Comments

@ItsWasteD
Copy link

Subject

Clear description for "trashAssetsBeforeRun"

Description

I already opened a discussion for this topic but I didn't get a response. cypress-io/cypress#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?

@jennifer-shehane
Copy link
Member

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

@ItsWasteD
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants