Tests fail, are slow with headless Chrome on CircleCI

Some thoughts:

  1. Is there any pattern in the test failure?
  2. Do you get different failures for each run?
  3. Are you able to get a screenshot for a failure?

Perhaps you would also paste your CircleCI config. I am wondering if there is a server component that could do with a few seconds of sleep, so it is always ready before you try to use it.