Add content area behind search results in templates
Change-Id: I76ddb30683c7bec97c948fbe976db1e6feb585b1
diff --git a/t/query.t b/t/query.t
index f3b83a6..289cc2b 100644
--- a/t/query.t
+++ b/t/query.t
@@ -73,7 +73,6 @@
->header_isnt('X-Kalamar-Cache', 'true')
;
-
$t->get_ok('/?q=[orth=das')
->status_is(400)
->text_is('div.notify-error:nth-of-type(1)', '302: Parantheses/brackets unbalanced.')
@@ -242,16 +241,23 @@
->text_is('#error','')
;
+$t->app->hook(
+ before_dispatch => sub {
+ my $c = shift;
+ $c->content_for('after_search_results' => '<p id="special">Funny</p>');
+ }
+);
+
# Query with corpus query
$t->get_ok('/?q=baum&cq=availability+%3D+%2FCC-BY.*%2F')
->status_is(200)
->element_exists("input#cq[value='availability = /CC-BY.*/']")
->content_like(qr!\"availability\"!)
->text_is('#error','')
+ ->text_is('#special', 'Funny')
;
-
my $match = {
matchID => 'match-FOLK/00070-SE-01/T-04-p5441-5442',
textSigle => 'FOLK/00070-SE-01/T-04'