I am running controlled tests in cypress and after some testing this error occurs randomly in electron browser:
An error occurred while reconnecting the Chrome DevTools protocol.
Please restart your browser.
In google chrome it runs without errors, but in Electron it is crashing.
Due to the setup in AWS, I need to run in Electron.
I have the same problem in versions 12.12 and 12.13. I solved it by downgrading to version 12.11.
I suspect the issue is caused by this PR https://github.com. com/cypress-io/cypress/pull/26573/files