Take the 2-minute tour ×  I'm writing my first Cucumber steps
definition for a front-end widget and I'm paralysed by fear over
the vast spectrum of ways in which I can go about writing these,
ranging from so verbose and specific I'm essentially writing the
same thing in 2 languages, up to writing my own English grammar
parser in RegExp.  In order to avoid writing a specific string
match for each expression in the feature, it seems reasonable to
create a dictionary of verbs (to with corresponding DOM events)
and elements (with corresponding selectors). Transform and def
statements look like they could achieve this — is there a
recommended way of going about it?  share|improve this question
add comment   Your Answer    Browse other questions tagged or
ask your own question.