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

[Question] Is there a way to detect and delete obsolete snapshots using playwright #19597

Closed
Jamesj001 opened this issue Dec 20, 2022 · 3 comments

Comments

@Jamesj001
Copy link

  • Is there any flag/api provided currently we can use to detect and delete obsolete snapshots present ?
@Jamesj001 Jamesj001 changed the title Is there a way to detect and delete obsolete snapshots using playwright [Question] [Question] Is there a way to detect and delete obsolete snapshots using playwright Dec 20, 2022
@pavelfeldman
Copy link
Member

There is no such feature, but if you delete all the snapshots and run Playwright with update snapshot flag, it'll generate only the ones that are used.

@pavelfeldman
Copy link
Member

Closing as per above, please feel free to open a new issue if this does not cover your use case.

@stuymedova
Copy link

@pavelfeldman It'd be nice to have this as a feature. Otherwise screenshots directories can get polluted so we have to monitor this on code review when clearly this can (and should) be automated

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

No branches or pull requests

3 participants