Translate example query documentation
Change-Id: I0578c2ffc4071b565e48dae5225dc12488bf8667
diff --git a/t/doc.t b/t/doc.t
index b0f15c9..af5c2b0 100644
--- a/t/doc.t
+++ b/t/doc.t
@@ -12,7 +12,17 @@
# Bug 2021-06-11
$t->get_ok('/doc/ql/wildcards?cat=1')
- ->status_is(404)
+ ->status_is(404) # ! Should be 404!
+ ;
+
+$t->get_ok('/doc/ql/')
+ ->status_is(200)
+ ->text_is('title','KorAP: Query Languages')
+ ;
+
+$t->get_ok('/doc/ql')
+ ->status_is(200)
+ ->text_is('title','KorAP: Query Languages')
;
# Embedding
@@ -46,6 +56,16 @@
->status_is(200)
->text_is("title", "KorAP - Corpus Analysis Platform");
+$t->get_ok('/doc/ql/' => { 'Accept-Language' => 'de-DE, en-US, en' })
+ ->status_is(200)
+ ->text_is('title','KorAP: Anfragesprachen')
+ ->text_is('h3','Beispielanfragen')
+ ;
+
+$t->get_ok('/doc/ql' => { 'Accept-Language' => 'de-DE, en-US, en' })
+ ->status_is(200)
+ ->text_is('title','KorAP: Anfragesprachen')
+ ;
# Pages
$t->get_ok('/doc/ql/poliqarp-plus' => { 'Accept-Language' => 'en-US, en, de-DE' })