开玩笑:找不到功能文件()错误
我有一个功能文件,称为 consolelogger.feature 。 和 consolelogger.steps.js 包含以下代码, import { defineFeature, loadFeature } from 'jest-cu…
如何使用CodeCeptJ和Cucumber获取场景名称
我正在使用带有黄瓜助手的CodeCeptJ。对于报告,需要在部分之前获取方案名称。 尝试使用此文档: https://codecept.io/bdd/#before 所以 Before(() =>…
Cucumber-JS:访问世界参数
我有一个Cucumber-JS和剧作家项目。 我想访问cucumber.js文件中定义的WorldParameters键和值,如下所示: worldParameters: { baseUrl: 'https://www.…
如何使API呼叫与Jest-Cucumber一起使用?
我有一个React Native应用程序,需要使用Jest-Cucumber使用Gherkin样式语法编写测试步骤。我能够编写示例步骤定义并成功运行它们。现在,我需要编写一…
黄瓜-js +剧作家:收到“错误:测试期间必须调用 toMatchSnapshot()”使用 .toMatchSnapshot() 时出错
我需要设置视觉回归框架剧作家 + cucumber-js。 我终于使它以某种方式工作,但是我无法通过剧作家匹配屏幕截图。 当执行到达行时: expect(await page…
“错误:无法在模块外部使用 import 语句”在带有打字稿的 Cucumber-JS 步骤定义中
我收到以下错误: command: npx cucumber-js .\cucumber-e2e\ import { Given, When, Then } from '@cucumber/cucumber'; ^^^^^^ SyntaxError: Cannot…
我可以使用“npm run watch”监视当前目录之外的文件吗?
我使用两个存储库;一个包含源代码,一个使用 CucumberJS 进行 E2E 测试: application-repo/ application-e2e/ 我想在第二个存储库中运行 npm run wa…
- 共 1 页
- 1