wp-e2e-tests
wp-e2e-tests copied to clipboard
e2e tests: capture console errors whenever a test fails
This will be useful for debugging errors
You mean JavaScript only, or also network timeouts (HTTP code errors)?
This can be applied to every e2e test on failure as well as capturing the screenshot we should capture the console errors and attach this to the failure.
I think it's already implemented. We just need to enable it for our CI builds (and think where to post these messages): https://github.com/Automattic/wp-e2e-tests/blob/master/lib/after.js#L97-L102
I think it's already implemented.
From what I remember there were some issues with it being very noisy or not quite working - just needs some work re-enabling and seeing how it goes