在 Cypress 版本 12.17.2 和 Cucumber 版本 18.0.1 中缺少步骤实现…

huangapple go评论74阅读模式
英文:

Step implementation missing for ... In cypress ver - 12.17.2 and cucumber : 18.0.1

问题

我的项目结构。

错误消息。

我不确定为什么会出现错误,因为我已经正确安装并按照所有步骤进行操作。

我期望cucumber-cypress能正常工作。

英文:

my project structure.

在 Cypress 版本 12.17.2 和 Cucumber 版本 18.0.1 中缺少步骤实现…

error message

在 Cypress 版本 12.17.2 和 Cucumber 版本 18.0.1 中缺少步骤实现…

I am not sure why i am getting the error as i have followed all installation and steps properly.

i am expecting cucumber-cypress to work properly.

答案1

得分: 3

你没有完全按照步骤执行,可以从这个页面Step definitions查看。

{
  "stepDefinitions": [
    "cypress/e2e/[filepath]/**/*.{js,ts}",
    "cypress/e2e/[filepath].{js,ts}",
    "cypress/support/step_definitions/**/*.{js,ts}",
  ]
}

但是你在上面展示的文件名/扩展名部分 /*.{js,ts} 丢失了。

我建议尝试完全按照模式操作,也许可以解决问题。

英文:

There is one step you did not follow exactly, from this page Step definitions

{
  "stepDefinitions": [
    "cypress/e2e/[filepath]/**/*.{js,ts}",
    "cypress/e2e/[filepath].{js,ts}",
    "cypress/support/step_definitions/**/*.{js,ts}",
  ]
}

but above you show that the filename/extension part /*.{js,ts} is missing.

I would try following the pattern exactly, maybe that will solve the problem.

huangapple
  • 本文由 发表于 2023年7月28日 01:43:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/76782255.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定