Let's ping the API endpoint using cy.request until it responds with success, we can use https://github.com/bahmutov/cypress-r... to do this. After the API responds we can continue with the rest test. Find the source code in the "Wait for API" recipe in https://github.com/cypress-io/cypress...
Nesta página do site você pode assistir ao vídeo on-line cypress-recurse: Wait for the API to respond duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário gleb bahmutov 15 Março 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 5,965 vezes e gostou 43 espectadores. Boa visualização!