mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-23 23:49:43 -05:00
c8b184be44
* 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
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