-
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
Update cy.screenshot() to accept directory location + filename #1771
Comments
Released in |
@jennifer-shehane @brian-mann how can I disable the automatic folder placement for screenshots? since I have custom commands which store images and move them into a specific folder, please let me know the option i need to pass to disable this feature temporarily while I evaluate the new screenshot capabilities and work on solving the matching. Thanks! EDIT: Nevermind. was fairly simple to solve for! |
@egucciar I wouldn't hard code its path there - thats the problem. I would use the new Alternatively you could use the The |
@brian-mann the issue is that this is not a plugin but rather a the |
No, but your |
@brian-mann the question is can we make an assert & fail a test from a |
Yes every plugin event is promise aware so if you reject a promise or throw then the |
Very cool! Thanks! Will definitely look into this solution. |
Current behavior:
The code below saves the screenshot as the name
foobarbazquux.png
within thescreenshotsFolder
Desired behavior:
The above code should create the necessary directories in order for the screenshot to be saved at
foo/bar/baz/quux.png
within thescreenshotsFolder
.The text was updated successfully, but these errors were encountered: