Files
cypress/packages/launcher
Zach Bloomquist c8b184be44 Fix cypress run --headless (#5953)
* fix chrome headless

* update tests, load absolutely no extensions

* lol

* add e2e test for '--headless' flag

* add get:screenshots:taken

* add test for window bounds

* fix --headless test

* update snapshot

* ts'ify and document functions in chrome.ts

* properly export @packages/launcher types

* fix types

* assert on window bounds in headless spec

* add navigator.userAgent test

* only run in ci

* remove test of questionable value
2019-12-16 13:10:12 -05:00
..
2017-09-25 07:30:51 -07:00
2017-06-23 14:32:30 -04:00

Launcher

This package finds and launches browsers for each operating system.

Installing

The launcher's dependencies can be installed with:

cd packages/launcher
npm install

Developing

The TypeScript source files are in lib folder.

To see browsers detected on your machine, just run:

node index.js

You can supply a list of binaries to test if they're browsers or not. Try running:

node index.js /bin/bash /usr/bin/chromium-browser

Testing

npm run test

Debugging

Uses debug to output debug log messages. To turn on, use

DEBUG=cypress:launcher npm test