diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-07-25 14:50:32 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-07-25 14:59:57 +0200 |
commit | bdc5cb4ec35357562329d8ecb69ae91d2d9a4593 (patch) | |
tree | bf4323db1165608281089508ddf20e05c0973609 | |
parent | f23821275efce5d36414ba599e3b5b5cb87644a1 (diff) |
add a tad more static tests
-rw-r--r-- | t/01-static.t | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/t/01-static.t b/t/01-static.t index 4247225..21d0350 100644 --- a/t/01-static.t +++ b/t/01-static.t @@ -21,16 +21,22 @@ $t->get_ok('/')->status_is(200); $t->text_like( 'a[href="/register"]' => qr{Registrieren} ); $t->text_like( 'a[href="/login"]' => qr{Anmelden} ); -$t->get_ok('/register')->status_is(200); -$t->element_exists('input[name="csrf_token"]'); -$t->element_exists('a[href="/impressum"]'); -$t->text_like( 'button' => qr{Registrieren} ); +$t->get_ok('/about')->status_is(200); +$t->get_ok('/api')->status_is(200); +$t->get_ok('/changelog')->status_is(200); +$t->get_ok('/legend')->status_is(200); +$t->get_ok('/offline.html')->status_is(200); $t->get_ok('/login')->status_is(200); $t->element_exists('input[name="csrf_token"]'); $t->text_like( 'button' => qr{Anmelden} ); -$t->get_ok('/about')->status_is(200); +$t->get_ok('/recover')->status_is(200); + +$t->get_ok('/register')->status_is(200); +$t->element_exists('input[name="csrf_token"]'); +$t->element_exists('a[href="/impressum"]'); +$t->text_like( 'button' => qr{Registrieren} ); # Protected sites should redirect to login form |