Typically our stories’ Acceptance Criteria depart like so:
As a user, I want to ...
First, we need to sort out where all our files are, in the
cypress folder we find:
The important files I’ve worked on here are in
videos (the outcome of a executed integration). Let’s get started (pardon the sloppy code):
This is a common utility that both Cypress and Protractor depend on:
As the reader may see, I have a bit going on here already. Take the naming schemes with a grain of salt. In my
tests/bdd folder we find:
utils folder should be self-explanatory, and the toys inside just as well:
feature example 1
feature example 2
feature example 3
home-unit_spec.js is a bit disheveled anyway, but it’s really only a “standard” Cypress approach (albeit filtered through my poor coding habits). So we’ll just show what the Gherkin generalization metaspecification executes (I’m calling it a “metaspec” because of the introduction of Gherkin-style format and the presumption of thinking in terms of ubiquitous language, or “domain language”).