Listen To The Message

1 · Gleb Bahmutov · April 28, 2022, 6:26 p.m.
The window.postMessage calls are often used by complex web applications to send messages between different frames. In this blog post, I will show how to confirm the message was sent when using Cypress end-to-end test runner.The application🎁 You can find the source code for this blog post in the repository bahmutov/cypress-window-message-example.The top document loads its JavaScript and includes an inner iframe element.public/index.html1234567<html> <body> <h1>Top window</h1> <iframe src="...