mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-29 11:32:15 -05:00
0c265638ce
* feat: add X-Cypress-Request header in extension * feat: add X-Cypress-Request header in CDP * feat: add X-Cypress-Request header in electron * feat: add ExtractRequestedWithAndCredentialsIfApplicable middleware stub to remove the newly added x-cypress-request header * chore: change defaultHeaders variable name to requestModifications to more accurately reflect usage * chore: condense ExtractIsAUTFrameHeader and ExtractRequestedWithAndCredentialsIfApplicable into ExtractCypressMetadataHeaders middleware * test: add anti assertion for x-cypress-request and remove setting request verbage (as it does nothing yet)
Extension
This is the WebExtension responsible for automating the browser
Developing
Watching
yarn workspace @packages/extension watch
Building
yarn workspace @packages/extension build
Testing
yarn workspace @packages/extension test
yarn workspace @packages/extension test-watch
yarn workspace @packages/extension test-debug
Debugging
In Chrome
- 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
In Firefox
To be written...