I found a lot of info to indicate that nightmare will work with circleci, but I’m only getting failures does anybody have of a simple example of how this works? Or look at my attempt and let me know if I’m doing something wrong.
The test works locally which eliminates the possibility of invalid test code which would be my first guess since the failed output from CircleCI indicates that it’s running, but the promise is never resolving. I’ve tried increasing the time to a ridiculous number (50 minutes) and it still fails. The electron docs state circleCI support without any addition config although I did try explicit
xvfb commands which you can see in the test comments of my code (link below).
Here’s the repository I’m using which has a basic test to load
google.com. Checkout the
#!/bin/bash -eo pipefail HEADLESS=0 yarn test yarn test v0.24.4 $ mocha Load a Page basic ✓ should work google loads 1) should load without error 1 passing (30s) 1 failing 1) Load a Page google loads should load without error: Error: Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. error Command failed with exit code 1. Exited with code 1