Hi,

It seems that only

$t->ua->max_redirects(1);

was missing to me.

Thanks a lot, have a nice day  :)

Le vendredi 7 juillet 2017 18:57:44 UTC+2, [email protected] a écrit :
>
> Hi,
>
> Can please someone say me how to check a content_like, in a mojolicious 
> test script, if a redirects occurs ?
>
> $t = $t->post_ok('/engre' => {Accept => '*/*'} => form => {a => '0.25', z 
> => '10'})->status_is(302)->content_like(qr/principale/);
>
> does not work.
>
> Thanks & best regards,
>
> Amka
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" 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 https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to