wp-e2e-tests icon indicating copy to clipboard operation
wp-e2e-tests copied to clipboard

e2e tests: capture console errors whenever a test fails

Open alisterscott opened this issue 8 years ago • 4 comments

This will be useful for debugging errors

alisterscott avatar Nov 22 '16 03:11 alisterscott

You mean JavaScript only, or also network timeouts (HTTP code errors)?

lancewillett avatar Nov 22 '16 15:11 lancewillett

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.

alisterscott avatar Mar 01 '17 22:03 alisterscott

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

brbrr avatar Jun 06 '18 12:06 brbrr

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

alisterscott avatar Aug 01 '18 09:08 alisterscott