summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-11-24 20:29:52 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-11-24 20:29:52 +0100
commitb3b0a055b9b4c3ab332f75070ce1fa80a3638105 (patch)
tree789528522c157ca719c5b68dfe4af756305fa188 /t
parent9782cee53d51dbb65c9b27828f3c28e401849399 (diff)
improve get_user_travels performance, most notably when rendering map1.10.3
only create DateTime objects when needed
Diffstat (limited to 't')
-rw-r--r--t/02-registration.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/02-registration.t b/t/02-registration.t
index 0d324b0..2258d9a 100644
--- a/t/02-registration.t
+++ b/t/02-registration.t
@@ -237,6 +237,10 @@ $t->get_ok('/history/2018')->status_is(200)->content_like(qr{62 km})
->content_like(qr{Bei Abfahrt: 00:00 Stunden})
->content_like(qr{Bei Ankunft: 00:00 Stunden});
+$t->get_ok('/history/map')->status_is(200)
+ ->content_like(qr{\[\[51.956[^,]*,7.635[^]]*\],'M.nster\(Westf\)Hbf'\],})
+ ->content_like(qr{\[\[51.504[^,]*,7.102[^]]*\],'Gelsenkirchen Hbf'\]});
+
$csrf_token
= $t->ua->get('/journey/add')->res->dom->at('input[name=csrf_token]')
->attr('value');