How to use Cucumber for GUI component testing and why you should not do this
Sometimes you have to deal with all of these: user stories which are nothing else but simple requirements for some input fields; requirement to write e2e tests, where e2e is understood as "everything we can do using GUI"; phrase "we should use Cucumber because... just because this is the way we are used to do". We've started like this in one of our projects. I'm really happy finally we managed to get rid of "Cucumber for everything" requirement and are not using it for GUI component testing anymore. But we used to do this and here's some bad experience. Imagine you have a "user story" for a input field called "Customer Reference", which looks something like this (in fact, it was more complex, but the main idea remains the same): As a user I want to be able to enter customer reference number. Acceptance criteria: - number may contain alphanumeric symbols (including spaces) - number can be up to 20 symbols length ...