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

Capture screenshots on failures #927

Open
NullVoxPopuli opened this issue Mar 17, 2022 · 4 comments
Open

Capture screenshots on failures #927

NullVoxPopuli opened this issue Mar 17, 2022 · 4 comments

Comments

@NullVoxPopuli
Copy link
Collaborator

NullVoxPopuli commented Mar 17, 2022

Just learned about this api: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/captureVisibleTab though, capturing a screenshot of the test area may require something else like: https://github.com/NullVoxPopuli/limber/blob/main/frontend/app/components/limber/copy-menu.gts#L21

Would be great to include a screenshot of the test area in failed assertions, just to provide more information and allow folks to maybe see whan happened before rerunning tests with added pause/debugger/logs/etc

@rwjblue
Copy link
Member

rwjblue commented Apr 12, 2022

Hmm. Not sure what this would actually look like, where would the screenshots go? How would you gain access to them?

@mupkoo
Copy link

mupkoo commented Nov 29, 2022

You can use the artefacts feature of your CI provider to download them and view them. Cypress does this and this is how we get access to those screenshots using GitHub actions

@kceb
Copy link

kceb commented Jun 27, 2024

Would this only work in Firefox?

@NullVoxPopuli
Copy link
Collaborator Author

image

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

4 participants