<div dir="ltr">This is the kind of thing that would send to Gizmo as a "Rubber Duck Debugging" thing, but I don't believe the answer to this is with in my head, where explaining it in depth will bring it out, or in Gizmo's, where he could ask insightful questions and break my mental logjam.<br><br>I'm testing a feature in our web tool, which uses PSGI. I have a some tests in a branch off master, and I have added $self->{use_feature} = 1 to the tests, and they pass.<br><br>These tests involve having <b>X</b> as a cookie, <b>munge(X)</b> as a field in the form, and the application taking both from input, and testing if <b>remunge(X) == munge(X)</b>. This means I have to tease the <b>munge(X)</b> field out of the output, and this combines my unfamiliarity with testing syntax, <b>Test::More</b> and <b>Test::WWW::Mechanize::PSGI</b> (as well as <b>WWW::Mechanize</b> itself) with the standard "can you parse HTML?" problem. (see: <a href="https://stackoverflow.com/a/1732454/168161">https://stackoverflow.com/a/1732454/168161</a>)<br><br><div>At this point in the process, I want to be able to tell the application "This should be in the form, and this should be a cookie" and test if those values come out. I'm looking in MetaCPAN and in our tests and I'm not seeing much about testing cookies.</div><div><br></div>-- <br><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr">Dave Jacoby<br>
<a href="mailto:jacoby.david@gmail.com" target="_blank">jacoby.david@gmail.com</a><br>
<br>“There is nothing obvious” <br>    — Theo<br></div></div></div></div>