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...
Watch video cypress-recurse: Wait for the API to respond online without registration, duration hours minute second in high quality. This video was added by user gleb bahmutov 15 March 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5,965 once and liked it 43 people.