DEV Community

Discussion on: Using the keywords Given/When/Then with Cypress but without Cucumber

Collapse
 
walmyrlimaesilv profile image
Walmyr

Hi Richard, in this example there's no feature files, only spec files.
And when there are steps that are the same for more than one test, what I do is to create a context, and inside of the context I use a beforeEach hook, as shown in the content.
I hope this clarifies things, if not, please let me know.

Collapse
 
rforjoe profile image
Richard Forjoe

Thank you. Will need to give it a try πŸ‘ŒπŸ™πŸΎ

Thread Thread
 
walmyrlimaesilv profile image
Walmyr • Edited

For other examples, take a look at this gist gist.github.com/wlsf82/0110f4455a6....

Thread Thread
 
walmyrlimaesilv profile image
Walmyr • Edited

This is the code of my talk at Global Tester's Day 2021, and the slides can be found here slideshare.net/walmyrlimasilvafilh....

Thread Thread
 
rforjoe profile image
Richard Forjoe

Thank you πŸ™πŸΎπŸ‘Œ