Thanks for trying to help 🙂
But this still does not work. Looks like things are running faster than Cypress is able to detect.
I have a feature that inserts a delay server side (on my dev server), and when I turn it on, things work fine.
These messages are there because my page is used on very slow networks and old devices, so I want those messages to be displayed while waiting for network etc.
Also, I have many other messages displayed for other reasons, and I want to test that the right messages are displayed, and no other messages. There is a lot of logic in my code, and it is really hard to get it all right, so it is kind of important to get this tested properly.
And I would like to avoid having delays in my tests.