Chrome extension content script messaging react application not working in Cypress environment

I figured out how to bypass the button click to directly send the message to my react application through Cypress with stubbed information and it works!

To complete the coverage I modified my code to not run the function if it the window that the message is sent from includes the cypress browser URL and simply added a click event in my test case.

Hope this helps someone who gets stuck in the same spot.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top