Tengo un montón de pruebas de ciprés escritas. Todos estaban trabajando muy bien. Pero de alguna manera todos comenzaron a fallar al visitar el sitio de destino con el siguiente error:
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 Cuando abro https://mywebsite.com/accounts/login/ explícitamente en el navegador, se abre. Entonces, ¿qué podría estar yendo mal aquí?
¡Cerrar la ventana del navegador cypress, volver a ejecutar npx cypress open y luego iniciar la prueba cypress funcionó! Aunque no sé qué pudo haber salido mal exactamente.