DEV Community

Discussion on: Cypress Tests in BDD Style

Collapse
 
damasofc profile image
Damaso Fernandez

I've a problem with this cucumber and cypress implementation, I have 2 scenarios from the same feature, where this 2 scenarios share 1 step in common, but the issue is that this step that they have in common, it writes different data, this step made the same thing but with different data, and my issue is that always I run this tests, the 2nd scenario re-runs the step of the first scenario, I hope I explain my self in correct way, but please I'll be very glad to get your answer, thank you in advanced

Collapse
 
ajdinmust profile image
Ajdin Mustafić

Hi @Damaso! I understand what you mean but can you give me an example of how different data does it write? Also, you can double-check if the 2nd scenario writes different data because the 1st scenario already wrote some things that can not be written again.