Josh,

On 22/01/2009, Josh Chisholm <joshuachish...@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'.

Aidy
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to