Support pages in snippet views
Change-Id: Idd538e06ab55358c102b9caa4dbb902323cd4b22
diff --git a/t/query.t b/t/query.t
index 54f2a8f..5e6869e 100644
--- a/t/query.t
+++ b/t/query.t
@@ -78,8 +78,15 @@
->text_like('li:nth-of-type(1) div.snippet span.context-right',qr!es war!)
->text_is('li:nth-of-type(1) p.ref strong', 'Italienische Reise')
->text_like('li:nth-of-type(1) p.ref', qr!by Goethe, Johann Wolfgang!)
- ->text_is('li:nth-of-type(1) p.ref time[datetime=1982]', 1982)
->text_is('li:nth-of-type(1) p.ref span.sigle', '[GOE/AGI/00000]')
+ ->text_is('li:nth-of-type(1) p.ref time[datetime=1982]', 1982)
+ ->text_like('li:nth-of-type(1) p.ref ', qr!von \(, \)!)
+ ->text_is('li:nth-of-type(1) p.ref span.pages', 'p. 109')
+
+ ->element_exists_not('li:nth-of-type(2) p.ref time')
+ ->text_like('li:nth-of-type(2) p.ref ', qr!von \(\)!)
+ ->text_is('li:nth-of-type(2) p.ref span.pages', 'pp. 109–204')
+
->header_isnt('X-Kalamar-Cache', 'true')
->attr_is('#pagination','data-page','1')
->attr_is('#pagination','data-total','3')