web
web copied to clipboard
`testsFinishTimeout` does not print browser logs
Hi, I just tried out using testsFinishTimeout as a simple timeout mechanism not coupled to the underlying test framework. It seems to function as a timeout, however it doesn't print any debug information when a time out is hit. I simply get:
dist/src/2.test.html:
❌ Browser tests did not finish within 10000ms. You can increase this timeout with the testsFinishTimeout option. Check the browser logs or open the browser in debug mode for more information.
My first question here is: Where are the browser logs? This messages seems to imply they are written to a log file somewhere, but I don't see them in the project directory and I couldn't find any references in the docs site about where such logs would go.
My second thought is: Should WTR just output the logs directly like it normally would? I'm fairly confident there are browser logs being emitted by this failing test (it only sometimes times out, and when it doesn't I do see log data). I'm not sure if this is an intentional UX decision or a bug in the output. Either way, I figured it was worth filing an issue about.