Files
cypress/packages/extension
Bill Glesias 0c265638ce feat: add resource type header to CDP, extension, and electron (#23821)
* 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)
2022-09-18 22:28:32 -04:00
..
2021-08-04 10:23:45 -04:00
2021-10-13 23:51:38 +00:00
2022-08-25 09:31:02 +10:00
2021-02-04 15:45:16 -05:00

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

  1. Open Chrome
  2. Go into Extensions
  3. Check Developer Mode
  4. Click Load unpacked extension...
  5. Choose packages/extension/dist directory
  6. Click background page to debug background.js
  7. Click Reload (⌘R) to pull in changes to manifest.json

In Firefox

To be written...