I'm newly in cypress and I faced a problem. I need to check received letter and click it. I case of letter received immediately it's simple I check that element present and after that ckick on the letter. I used something like this

```
**cy.get("body").then($body => {
    if ($body.find("button[data-cy=appDrawerOpener]").length > 0) { 
      cy.get("button[data-cy=appDrawerOpener]")
        .click();
    }**  

```

But I don't understend how can I check the letter if i receive it for example after 2 minutes. What logical condition Should I create?