Cucumber步骤定义在与cypress和Cucumber一起使用时不使用|(管道符号)

Cucumber步骤定义在与cypress和Cucumber一起使用时不使用|(管道符号),cucumber,cypress,Cucumber,Cypress,有人试过在Cypress中的步骤定义中使用|(管道符号)吗 我这样写步骤定义 Then ('I can see that the product (displayed|not displayed)',(isDisplayed) =>{ //My code here }) 但是柏树扔错了 Step implementation missing for: I can see that the product displayed node_modules/cypress-cucumber

有人试过在Cypress中的步骤定义中使用|(管道符号)吗

我这样写步骤定义

Then ('I can see that the product (displayed|not displayed)',(isDisplayed) =>{
//My code here

})
但是柏树扔错了

Step implementation missing for: I can see that the product displayed 

node_modules/cypress-cucumber-preprocessor/lib/resolveStepDefinition.js:211:1
你能不用
&
)试试吗

i、 e

你能不用
&
)试试吗

i、 e

Then('I can see that the product displayed|not displayed',(isDisplayed) =>{
//My code here

})