javascript - Cypress - Cucumber 场景大纲
问题描述
我正在使用下面的功能文件:
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("I launch the web {string}", (url) => { cy.log(url) });
两者都给出错误
堆栈跟踪:错误:无法遍历依赖关系图:无法从 D:\cypress_RS\node_modules\chokidar\lib\fsevents-handler.js 所需的“D:\cypress_RS\node_modules\chokidar\lib”中找到模块“fsevents”
糟糕...我们发现准备此测试文件时出错:cypress\integration\features\UI\LinksValidation.feature
解决方案
推荐阅读
- python - 将多个数据框合并在一起
- express - 未导入嵌入式节点红色中的自定义调色板
- javascript - Bootstrap 模态覆盖关闭事件
- objective-c - objc_release 中的 EXC_BAD_ACCESS(由于 URLByResolvingBookmarkData?)
- javascript - 使用 JavaScript 和 Wix 网站构建器读取 JSON 文件
- php - 带有 PHP 代码段的 WpDataTable
- amazon-web-services - 激活 AWS Shield Standard 意味着什么?
- javascript - 如何使 Highstock 范围选择器按钮加载新数据?
- c++ - C ++:矢量<>的运算符[]重载
- android - 如何在 TextView 开始时减少额外空间?