We’ve started using CircleCI v2. We run Protractor E2E tests, which use Selenium (WebDriver) connecting to Chrome.
On CircleCI, our tests stall after the first scenario, eventually failing with a timeout:
However, on one run, the tests passed:
Note that build 2711 is a re-run of 2709! So, no code changes on our end.
I have modified our build to start an X VNC server, as per the instructions for CircleCI v1. When I view the X window via VNC, I can see the browser document appears blank. This was the case in both passing and failing builds. Sometimes, during a stalled build, clicking on the window itself will make the tests “un-stall” and continue to run. I can also open a new tab and access the application normally.
I have also tried logging in via SSH and running our E2E script manually, this worked fine with all tests passing.
Any idea what could cause this issue? Could it be that something is not initializing in time for the tests?