Introduced experimental API method and fixture system
Change-Id: Iffb6d3c4f7f21bcf40c904d40d137b206a3ba266
diff --git a/t/query.t b/t/query.t
new file mode 100644
index 0000000..de05a78
--- /dev/null
+++ b/t/query.t
@@ -0,0 +1,18 @@
+use Mojo::Base -strict;
+use Test::Mojo;
+use Test::More;
+
+my $t = Test::Mojo->new('Kalamar');
+
+# Query passed
+$t->get_ok('/q2?q=hui')
+ ->status_is(200)
+ ->text_is('#error','')
+ ->text_is('title', 'KorAP: Find »hui« with Poliqarp')
+ ->element_exists('meta[name="DC.title"][content="KorAP: Find »hui« with Poliqarp"]')
+ ->element_exists('body[itemscope][itemtype="http://schema.org/SearchResultsPage"]')
+ ;
+
+
+
+done_testing;