I am using the preprocessor
https://github.com/badeball/cypress-cucumber-preprocessor and I am seeking help for the below questions.
I can see the screenshot is available on the report when the tests fail. However, I would like to have a screenshot at every step. Is this configurable?
In BDD-Java, usually, I can call the function because it will be inside a public void function() with an annotation. However, in Javascript it normally looks like below
javascript
Given("I am a customer", () => {
cy.log("INFO: User Login");
initilizeRun();
});
Is there any way for me to call this step when the cucumber step definition is slightly different or I need to combine multiple steps?