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...
On this page of the site you can watch the video online cypress-recurse: Wait for the API to respond with a duration of hours minute second in good quality, which was uploaded by the user gleb bahmutov 15 March 2021, share the link with friends and acquaintances, this video has already been watched 5,965 times on youtube and it was liked by 43 viewers. Enjoy your viewing!