adjust tests for /account/... URL changes
This commit is contained in:
parent
2810eb490c
commit
122e2a7b4a
2 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@ $t->get_ok('/about')->status_is(200);
|
||||||
|
|
||||||
# Protected sites should redirect to login form
|
# 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} );
|
$t->get_ok($protected)->text_like( 'button' => qr{Anmelden} );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -128,11 +128,11 @@ $t->get_ok('/account');
|
||||||
$t->status_is(200)->content_unlike(qr{wird gelöscht});
|
$t->status_is(200)->content_unlike(qr{wird gelöscht});
|
||||||
|
|
||||||
$csrf_token
|
$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');
|
->attr('value');
|
||||||
|
|
||||||
$t->post_ok(
|
$t->post_ok(
|
||||||
'/change_password' => form => {
|
'/account/password' => form => {
|
||||||
csrf_token => $csrf_token,
|
csrf_token => $csrf_token,
|
||||||
oldpw => 'foofoofoo',
|
oldpw => 'foofoofoo',
|
||||||
newpw => 'barbarbar',
|
newpw => 'barbarbar',
|
||||||
|
|
Loading…
Reference in a new issue