我正在使用以下功能文件:
cypress\integration\features\UI\LinksValidation.feature
场景大纲:链接验证
Given Im on the application page
When I launch the web "<url>"
Then Verify if page loads fine
Examples:
| url |
| https://sample.com|
| https://sample1.com|
我的步骤定义文件如下所示:
When(/^I 启动网页 "(.*?)"$/, (url) => { cy.log(url) });
我也试过了 When("我启动网络 {string}", (url) => { cy.log(url) });
两者都给出错误
堆栈跟踪: 错误:无法遍历依赖关系图:无法从“D:\cypress_RS\node_modules\chokidar\lib”中找到模块“fsevents” D:\cypress_RS\node_modules\chokidar\lib\fsevents-handler.js 需要
糟糕...我们发现准备此测试文件时出错: cypress\integration\features\UI\LinksValidation.feature