Skip to content

Instantly share code, notes, and snippets.

@jimthedev
Created April 17, 2017 16:33
Show Gist options
  • Save jimthedev/1da65fde8c623dd0280e9b22bf9db364 to your computer and use it in GitHub Desktop.
Save jimthedev/1da65fde8c623dd0280e9b22bf9db364 to your computer and use it in GitHub Desktop.
testcafe w/headless chrome canary on osx
# Assuming your tests are in test/testcafe/index.test.js
# Assumes you are using this setup: objectpartners.com/2017/04/13/how-to-install-and-use-headless-chrome-on-osx/
$(npm bin)/testcafe path:\''{"path":"/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary","cmd":"--headless --remote-debugging-port=9222 --disable-gpu"}'\' test/testcafe/index.test.js
@Rask777
Copy link

Rask777 commented Apr 19, 2017

Hi. How to close the browser when tests finish?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment