【发布时间】:2020-04-14 11:51:46
【问题描述】:
我目前正在进行的项目使用 Selenium WebDriver Nightwatch 和 Cucumber。
问题是项目的文件夹结构发生了变化,现在 'nightwatch.conf.js' 文件中的 'page_objects_path' 看起来像这样:
'page_objects_path':
[
"./componentTests/page-objects",
"./componentTests/page-objects/xxxxxx",
"./componentTests/page-objects/xxxxx xxxx",
"./endToEndTests/page-objects",
"./endToEndTests/page-objects/xxxx",
"./endToEndTests/page-objects/xxxxxxx",
"./endToEndTests/page-objects/xxxx xxxxx",
"./endToEndTests/page-objects/xxxxxx"
"./endToEndTests/page-objects/xxxxxxxxxx"
],
有什么方法可以让 Nightwatch 读取 /page-objects/ 目录中的所有子文件夹,而无需在数组中明确指定为单独的路径?
【问题讨论】:
标签: node.js automation cucumber nightwatch.js cucumberjs