On Fri, Jun 10, 2011 at 11:10 AM, Jesse Sheidlower <[email protected]> wrote:

>
> ok( $mech_admin->tick('roles','2'), "ticked the newwords_admin checkbox" );
>


> The only thing failing here is the _test_ in the first line of this. The
> form is submitted correctly, and when I test the "view" page for this
> newly-created user, it has the correct role.
>
> Similarly, for my "edit" test, I untick this role, tick a different
> role, and the results are correct. But both "ok" tests for the unticking
> and ticking, fail.
>
> What's wrong with my test here?
>

WWW::Mechanize->tick() and WWW::Mechanize->untick() don't return anything on
success.  They call WWW::Mechanize->warn() if the referenced checkbox does
not exist.

Ronald
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to