【发布时间】:2020-08-04 15:20:21
【问题描述】:
我在从容器运行 Cypress 测试时遇到问题。
在我的docker-compose 中,我有以下服务:用户、客户端、users-db、nginx,它们都在运行。
我的baseUrl 设置为"http://nginx",因为我在某个需要参考的地方阅读
服务器正在运行的服务,在我的例子中是 nginx。
我也试过"http://localhost"和"http://client"
但是当我运行docker run -it -v $PWD:/e2e -w /e2e cypress/included:4.11.0 时,我不断收到Cypress could not verify that this server is running
非常感谢任何有助于解决问题的反馈。
【问题讨论】: