- Notifications
You must be signed in to change notification settings - Fork 10
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
The CDP is used to inspect the browser launched by Cypress in order to collect the browser console logs. The project uses chrome-remote-interface, the recommended node module.
Cypress gives the opportunity to connect to the browser from the setupNodeEvents function by listening to before:browser:launch (https://docs.cypress.io/api/plugins/browser-launch-api).
Here is the implementation.
The issue:
After running npx cypress run --browser chrome, the CDP is connected, but after processing the first spec - it disconnects.
Currently, the CPD is reconnecting before each spec - https://github.com/currents-dev/cypress-debugger/blob/feat/console-messages/packages/plugin/src/install.ts#L93.
Why the CDP is disconnecting after each spec file?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
