This is an example code for TheCodest's meet-up about weired cypress tests. This one shows how to prevent clicking before a relevant event listener is active.
The presentation is here: https://docs.google.com/presentation/d/1HtblmpU8Ks3MXSAeZE9dCDWRWSrDdNmMYlSlJ93TFZM/edit?usp=sharing