-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Proposal: Nest screenshot path based on spec path by default #1826
Comments
@brian-mann What about when/if we eventually support having different folders for unit and e2e tests? Should we include the test type too to avoid collisions? So the pattern is:
with
saved as
|
Definitely don't take into account the It is a good point, but I don't think we can factor that in right now. |
Released in |
Well, this is quite a breaking change for a minor release. :/ |
@phryneas Sorry for the inconvenience. There has been a new section added to the screenshots docs on "Naming conventions", hopefully this helps. |
Instead of saving screenshots all directly in the screenshots directory, nest them based on where the spec file is relative to the integration directory. So if running
cypress/integration/app/#/user_spec.js
a screenshot will be saved as
cypress/screenshots/app/#/user_spec.js -- login -- users -- can log in.png
.The text was updated successfully, but these errors were encountered: