This is the WebExtension responsible for automating the browser
yarn workspace @packages/extension watch
yarn workspace @packages/extension build
yarn workspace @packages/extension test
yarn workspace @packages/extension test-watch
yarn workspace @packages/extension test-debug
- Open Chrome
- Go into Extensions (
chrome://extensions
) - Check Developer Mode (top right of screen)
- Click Load unpacked extension... (top left of screen)
- Choose packages/extension/dist directory (v2)
- Click background page to debug
background.js
(inspect viewsbackground page
) - Click Reload (⌘R) to pull in changes to
manifest.json
- Launch Firefox via
cypress open
. - Once Firefox is open, open an new tab and navigate to
about:debugging
. - Click the
This Firefox
navigation item on the left hand navigation pane and locate theCypress
extension underTemporary Extensions
. - Click
inspect
. A console window should now appear in a separate window. - Close the
about:debugging
tab. - In the newly spawned console window, you should be able to see
background.js
in theDebugger
tab. - Set breakpoints as needed to inspect what code you are trying to debug. Happy debugging!