ember-qunit icon indicating copy to clipboard operation
ember-qunit copied to clipboard

Capture screenshots on failures

Open NullVoxPopuli opened this issue 2 years ago • 4 comments

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

NullVoxPopuli avatar Mar 17 '22 10:03 NullVoxPopuli

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

rwjblue avatar Apr 12 '22 16:04 rwjblue

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

mupkoo avatar Nov 29 '22 17:11 mupkoo

Would this only work in Firefox?

kceb avatar Jun 27 '24 22:06 kceb

image

NullVoxPopuli avatar Jun 28 '24 02:06 NullVoxPopuli