Added simple search fixture to fake server
Change-Id: I65a5fcc80820d6eb61a2deab1748e25ab1354dc3
diff --git a/t/remote.t b/t/remote.t
index 30156ea..53ab29e 100644
--- a/t/remote.t
+++ b/t/remote.t
@@ -1,9 +1,12 @@
use Mojo::Base -strict;
use lib '../lib', 'lib';
-use Test::More skip_all => 'No remote tests';
+use Test::More;
use Test::Mojo;
+$ENV{MOJO_MODE} = 'test';
+
my $t = Test::Mojo->new('Kalamar');
+
$t->get_ok('/')
->status_is(200)
->text_is('title', 'KorAP - Corpus Analysis Platform')
@@ -11,12 +14,15 @@
;
# Check paging
-$t->get_ok('/?q=test')
- ->text_like('h1 span', qr/KorAP: Find "test"/i)
+$t->get_ok('/?q=Baum')
+ ->text_like('h1 span', qr/KorAP: Find .Baum./i)
# ->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)
-;
+ ;
+
+done_testing;
+__END__
# Check paging
$t->get_ok('/?q=test&p=2')