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, duration hours minute second in high quality that is uploaded to the channel gleb bahmutov 15 March 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 5,965 times and liked it 43 visitors.