summaryrefslogtreecommitdiff
path: root/t/02-static-en.t
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-07-27 10:34:16 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-07-27 10:34:16 +0200
commit04f4de4f14f57cd52ee0d61e6fc2b30c781cd204 (patch)
treeb7a3dee3e7d235496912d6f2955fcb413fcc6b88 /t/02-static-en.t
parentb8398a1c3c39dc4087af1c1b895a19c980196bba (diff)
tests: Remove (not really helpful) number prefix
Diffstat (limited to 't/02-static-en.t')
-rw-r--r--t/02-static-en.t50
1 files changed, 0 insertions, 50 deletions
diff --git a/t/02-static-en.t b/t/02-static-en.t
deleted file mode 100644
index 26641cb..0000000
--- a/t/02-static-en.t
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/usr/bin/env perl
-
-# Copyright (C) 2020 Birte Kristina Friesel <derf@finalrewind.org>
-#
-# SPDX-License-Identifier: MIT
-
-use Mojo::Base -strict;
-
-use Test::More;
-use Test::Mojo;
-
-# Include application
-use FindBin;
-require "$FindBin::Bin/../index.pl";
-
-my $t = Test::Mojo->new('Travelynx');
-
-$t->ua->on( start => sub { $_[1]->req->headers->accept_language('en-GB') } );
-
-$t->get_ok('/')->status_is(200);
-$t->text_like( 'a[href="/register"]' => qr{Register} );
-$t->text_like( 'a[href="/login"]' => qr{Login} );
-
-$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{Login} );
-
-$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{Register} );
-
-# Protected sites should redirect to login form
-
-for my $protected (qw(/account /account/password /history /s/EE)) {
- $t->get_ok($protected)->text_like( 'button' => qr{Login} );
-}
-
-# Otherwise, we expect a 404
-$t->get_ok('/definitelydoesnotexist')->status_is(404);
-
-done_testing();