【问题标题】:Cypress fails to load a website with ENOTFOUND赛普拉斯无法使用 ENOTFOUND 加载网站
【发布时间】:2021-12-03 04:54:11
【问题描述】:

我写了一堆柏树测试。他们都工作得很好。但不知何故,他们都开始无法访问目标站点,并出现以下错误:

cy.visit() failed trying to load:

https://mywebsite.com/accounts/login/

We attempted to make an http request to this URL but the request failed without a response.

We received this error at the network level:

  > Error: getaddrinfo ENOTFOUND mywebsite.com

当我在浏览器中显式打开 https://mywebsite.com/accounts/login/ 时,它会打开。那么这里可能出了什么问题呢?

【问题讨论】:

    标签: javascript node.js reactjs automated-tests cypress


    【解决方案1】:

    关闭 cypress 浏览器窗口,重新运行 npx cypress open 然后启动 cypress 测试成功!!!虽然我不知道到底出了什么问题。

    【讨论】:

      猜你喜欢
      • 2020-12-23
      • 2021-09-09
      • 1970-01-01
      • 2022-10-02
      • 2021-07-07
      • 1970-01-01
      • 1970-01-01
      • 2019-01-23
      • 1970-01-01
      相关资源
      最近更新 更多