是否有人尝试在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
})