环境
CypressError: `cy.visit()` failed trying to load: http://localhost:3000/
怪不得会出错。但是,如何启动webpack-dev-server之前运行测试与cypress?
ffvjumwh1#
Cypress文档中对此进行了说明。www.example.comhttps://docs.cypress.io/guides/continuous-integration/introduction#Solutions简而言之:
npm i -g wait-on@latest npm start & wait-on http://localhost:3000 cypress run
1条答案
按热度按时间ffvjumwh1#
Cypress文档中对此进行了说明。www.example.comhttps://docs.cypress.io/guides/continuous-integration/introduction#Solutions
简而言之: