Test query language entry
Change-Id: I415396b8f69ad25f3d7f6751c2a43a072012492c
diff --git a/t/remote.t b/t/remote.t
index 6770c4f..845c327 100644
--- a/t/remote.t
+++ b/t/remote.t
@@ -19,12 +19,16 @@
# ->text_is('pre.query.serial span', 'JSON-LD Serialization for "test"')
->text_like('#total-results', qr/\d+$/)
->text_is('#pagination a[rel=self] span', 1)
+ ->element_exists_not('#ql-field option[value=poliqarp][selected]')
+ ->element_exists_not('#ql-field option[value=cosmas2][selected]')
;
# Check paging
-$t->get_ok('/?q=test&p=2')
+$t->get_ok('/?q=test&p=2&ql=cosmas2')
->text_like('#total-results', qr/\d+$/)
->text_is('#pagination a[rel=self] span', 2)
+ ->element_exists('#ql-field option[value=cosmas2][selected]')
+ ->element_exists_not('#ql-field option[value=poliqarp][selected]')
;
done_testing;