Commit 11cb588c authored by Francesc Guasch's avatar Francesc Guasch
Browse files

wip(test): show error when failed login

parent 774ead8e
......@@ -711,7 +711,7 @@ sub mojo_login( $t, $user, $pass ) {
$t->ua->get($URL_LOGOUT);
$t->post_ok('/login' => form => {login => $user, password => $pass});
like($t->tx->res->code(),qr/^(200|302)$/);
like($t->tx->res->code(),qr/^(200|302)$/) or die $t->tx->res->body;
# ->status_is(302);
$MOJO_USER = $user;
$MOJO_PASSWORD = $pass;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment