summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-05-03 22:22:08 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-05-03 22:22:08 +0200
commit122e2a7b4a5a994b5a55bafd7304aa879f3bd17b (patch)
tree6c56b9db86add4e08c7d27d13dcec2545cfb39e3 /t
parent2810eb490ca8465343e009f9d9a0f8be6400eb11 (diff)
adjust tests for /account/... URL changes
Diffstat (limited to 't')
-rw-r--r--t/01-static.t2
-rw-r--r--t/02-registration.t4
2 files changed, 3 insertions, 3 deletions
diff --git a/t/01-static.t b/t/01-static.t
index 9b0906a..1d80ee0 100644
--- a/t/01-static.t
+++ b/t/01-static.t
@@ -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} );
}
diff --git a/t/02-registration.t b/t/02-registration.t
index b595337..71783d4 100644
--- a/t/02-registration.t
+++ b/t/02-registration.t
@@ -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',