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...
На этой странице сайта вы можете посмотреть видео онлайн cypress-recurse: Wait for the API to respond длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь gleb bahmutov 15 Март 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 5,965 раз и оно понравилось 43 зрителям. Приятного просмотра!