We take a screenshot when tests fail, but it'd be nice to be able to manually take a screenshot to aid in debugging. Let's refactor out that code into a step that can be run manually too!
(We did this to help debug #2869464: All Chrome tests failing with "Could not open connection: An unknown server-side error" - moving patch here!)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | panopoly_test-manual-screenshot-2874638-2.patch | 2.73 KB | dsnopek |
Comments
Comment #2
dsnopekHere's the patch!
Comment #4
dsnopekComment #6
dsnopekCommitted!
Comment #7
cboyden commentedIt would be nice to not depend on Imgur in situations where it's not needed. When testing locally, screenshots could be saved to a local directory.
Would it be possible to capture the screenshot, then if Imgur is not available, save it locally to a path that can be set in behat.yml? Our child distro has a very similar step that saves screenshots locally, then uses the Travis artifacts function to upload screenshots to AWS. It would be nice to combine forces here. @dsnopek if you think this is a good idea, I can work on an updated patch.
Comment #8
dsnopekSure! That should probably be a new issue, though