Cypress could not verify that the server set as your 'baseUrl' is running:

倾然丶 夕夏残阳落幕 提交于 2019-12-06 11:09:43

Cypress is giving you that error because at the time that Cypress starts, your application is not yet ready to start responding to requests.

Let's say your application takes 10 seconds to set up and start responding to requests. If you start your application and Cypress at the exact same time, Cypress will not be able to reach your application for the first ten seconds. Rather then wait indefinitely for the app to come online, Cypress will exit and tell you that your app is not yet online.

The way to fix this problem is to make sure that your web server is serving before Cypress ever turns on. The Cypress docs have some examples of how you can make this happen: https://docs.cypress.io/guides/guides/continuous-integration.html#Boot-your-server

I got the "Cypress failed to verify that your server is running" problem despite being able to access the site through a browser. The problem was that my

/etc/hosts

file did not include a line:

127.0.0.1 localhost

I solved this problem with update docker for Mac version and reset my setting.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!