<div class="gmail_quote">On Fri, Jun 10, 2011 at 11:10 AM, Jesse Sheidlower <span dir="ltr">&lt;<a href="mailto:jester@panix.com">jester@panix.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
ok( $mech_admin-&gt;tick(&#39;roles&#39;,&#39;2&#39;), &quot;ticked the newwords_admin checkbox&quot; );<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

The only thing failing here is the _test_ in the first line of this. The<br>
form is submitted correctly, and when I test the &quot;view&quot; page for this<br>
newly-created user, it has the correct role.<br>
<br>
Similarly, for my &quot;edit&quot; test, I untick this role, tick a different<br>
role, and the results are correct. But both &quot;ok&quot; tests for the unticking<br>
and ticking, fail.<br>
<br>
What&#39;s wrong with my test here?<br></blockquote><div><br></div><div>WWW::Mechanize-&gt;tick() and WWW::Mechanize-&gt;untick() don&#39;t return anything on success.  They call WWW::Mechanize-&gt;warn() if the referenced checkbox does not exist.</div>
<div><br></div><div>Ronald</div><div> </div></div>