Loading t/01-static.t +1 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ $t->get_ok('/about')->status_is(200); # Protected sites should redirect to login form for my $protected (qw(/account /change_password /history /s/EE)) { for my $protected (qw(/account /account/password /history /s/EE)) { $t->get_ok($protected)->text_like( 'button' => qr{Anmelden} ); } Loading t/02-registration.t +2 −2 Original line number Diff line number Diff line Loading @@ -128,11 +128,11 @@ $t->get_ok('/account'); $t->status_is(200)->content_unlike(qr{wird gelöscht}); $csrf_token = $t->ua->get('/change_password')->res->dom->at('input[name=csrf_token]') = $t->ua->get('/account/password')->res->dom->at('input[name=csrf_token]') ->attr('value'); $t->post_ok( '/change_password' => form => { '/account/password' => form => { csrf_token => $csrf_token, oldpw => 'foofoofoo', newpw => 'barbarbar', Loading Loading
t/01-static.t +1 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ $t->get_ok('/about')->status_is(200); # Protected sites should redirect to login form for my $protected (qw(/account /change_password /history /s/EE)) { for my $protected (qw(/account /account/password /history /s/EE)) { $t->get_ok($protected)->text_like( 'button' => qr{Anmelden} ); } Loading
t/02-registration.t +2 −2 Original line number Diff line number Diff line Loading @@ -128,11 +128,11 @@ $t->get_ok('/account'); $t->status_is(200)->content_unlike(qr{wird gelöscht}); $csrf_token = $t->ua->get('/change_password')->res->dom->at('input[name=csrf_token]') = $t->ua->get('/account/password')->res->dom->at('input[name=csrf_token]') ->attr('value'); $t->post_ok( '/change_password' => form => { '/account/password' => form => { csrf_token => $csrf_token, oldpw => 'foofoofoo', newpw => 'barbarbar', Loading