ember-qunit
ember-qunit copied to clipboard
Capture screenshots on failures
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
Hmm. Not sure what this would actually look like, where would the screenshots go? How would you gain access to them?
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
Would this only work in Firefox?