mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-04 14:00:22 -05:00
06ee0ca238
* only connect to socket if path has been replaced, fixes #4776 * upgrade sinon, do not instantiate sandbox * add tests to ensure connect is not called when not in browser mode * refactor once again to push connect to a separate module to make testable * move initializing extension connection to init.js - prevents situation where connect(…) is called when module is required - simplifies handling automatic connection only when in the browser without needing to modify globals Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Extension
This is the Chrome Extension responsible for automating Chrome
Installing
The extension's dependencies can be installed with:
cd packages/extension
npm install
Developing
Watching
npm run watch
Building
npm run build
Testing
npm run test
Debugging
- Open Chrome
- Go into Extensions
- Check Developer Mode
- Click Load unpacked extension...
- Choose packages/extension/dist directory
- Click background page to debug
background.js - Click Reload (⌘R) to pull in changes to
manifest.json