Cypress 10. Plugin events - cannot add more than one listener to events #23465
-
I have found since using Cypress 10 that if I have multiple listeners on, for example
Then only This has meant that various plugins that have functions listening to Is this a bug or by design? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This sounds like a bug to me - we should be merging all the listeners together, so multiple plugins can use the same hook. I wonder if it's getting clobbered here: https://github.com/cypress-io/cypress/blob/develop/packages/data-context/src/data/EventRegistrar.ts#L40 I think we should open an issue, sounds like a bug. |
Beta Was this translation helpful? Give feedback.
This sounds like a bug to me - we should be merging all the listeners together, so multiple plugins can use the same hook.
I wonder if it's getting clobbered here: https://github.com/cypress-io/cypress/blob/develop/packages/data-context/src/data/EventRegistrar.ts#L40
I think we should open an issue, sounds like a bug.