I have the following Cucumber BDD set up based on Cypress.io. The test runs fine when hard coding the value but failing when it is given in the "Scenario Outline with example' way. What am I missing?
Error:
Feature file:
Step Def:
Version:
Cypress 7.1.0: cypress-cucumber-preprocessor: "^4.0.3",
After trying all combinations, this (using regex) one worked.
When(/^keying the vessel identifier ([^"]*) on the search box$/, searchTerm => {
Search.doSearch(searchTerm)
});