Improve error handling
Change-Id: I1f54cf9cd4770d6602f70036cf0e27c9ede8c893
diff --git a/t/remote.t b/t/remote.t
index 328b4ef..a04ca5c 100644
--- a/t/remote.t
+++ b/t/remote.t
@@ -23,13 +23,9 @@
$fake_backend->pattern->defaults->{app}->log($t->app->log);
+
if (0) {
-$t->get_ok('/')
- ->status_is(200)
- ->text_is('title', 'KorAP - Corpus Analysis Platform')
- ->text_like('h1 span', qr/KorAP - Corpus Analysis Platform/i)
- ;
# Check paging
$t->get_ok('/?q=Baum')
@@ -75,13 +71,12 @@
};
-
-
# Check for query error
$t->get_ok('/?q=[orth=das&ql=poliqarp')
->element_exists('.notify-error')
->text_is('.notify-error', '302: Parantheses/brackets unbalanced.')
->content_like(qr!KorAP\.koralQuery =!)
+ ->text_is('.no-results:nth-of-type(1)', 'Unable to perform the search.')
;
done_testing;