[rspec-users] [cucumber] Features with multiple user iterations ¿?
aidy.lewis at googlemail.com
Thu Jan 22 06:40:39 EST 2009
On 22/01/2009, Josh Chisholm <joshuachisholm at gmail.com> wrote:
> > Would you avoid the brittleness that "clicks submit link|button" has over "I submit".
> There are often many ways of submitting on the same page. So to avoid
> tying "I submit" to a particular scenario, I tend to use "I click
> 'submit'", which doesn't correspond to a link or button specifically,
> but to "a link, button, or label with the text 'submit' -- and raise
> an error if it's ambiguous". Is that too vague? As a human, if I were
> told to "click 'submit'" I think I would apply the same reasoning.
Yes, and in a lot of cases we do choose 'I click submit' with the step
implementation searching for a button value or text link: however, the
user may specify a link; so I would write 'I click the 'submit' link'.
More information about the rspec-users