当与柏树和Cucumber一起使用时,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

你能在没有(&)

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

最新更新