I think that'd be nice. There are some things like that lacking in the e2e 
area that could benefit from such enhancements.

On Saturday, June 15, 2013 11:07:28 AM UTC-4, Nolan Lawson wrote:
>
> The Angular Scenario API provides the ability to toggle a 
> checkbox<http://docs.angularjs.org/guide/dev_guide.e2e-testing>
> :
>
> input(name).check()
>
>
> However, you can't explicitly specify whether the box should be checked or 
> not, in the same way that you can explicitly select a radio button or enter 
> a value into a text input.
>
> This ended up being a problem for me in situations where the checkbox 
> state can't be known in advance, e.g. if it's pre-set by a cookie, 
> localStorage, etc.
>
> My proposal is to add a setChecked(bool) function that takes a boolean 
> argument and allows you to explicitly set the checkbox state.  I've already 
> hacked it into angular-scenario.js and am using it in my own E2E tests.  
> Here's 
> a 
> diff<https://github.com/nolanlawson/deednik/commit/4b2296702fe9151655f29ae4ded16949fc44e186#diff-1>
> .
>
> Anybody else think this is a reasonable addition?  If so I'll write it up 
> as a pull request.
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to