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...
Sur cette page du site, vous pouvez voir la vidéo en ligne cypress-recurse: Wait for the API to respond durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur gleb bahmutov 15 mars 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 5,965 fois et il a aimé 43 téléspectateurs. Bon visionnage!