Introduced some basic metadata information
Change-Id: I4fab9d39a86200637cd780ba293e9982f4f0724b
diff --git a/t/basic.t b/t/basic.t
index 0bbc09e..fd48b43 100644
--- a/t/basic.t
+++ b/t/basic.t
@@ -2,6 +2,7 @@
use Test::More;
use Test::Mojo;
use Mojo::File qw/path/;
+use utf8;
my $t = Test::Mojo->new('Kalamar');
@@ -31,11 +32,22 @@
->text_is('title', 'KorAP - Corpus Analysis Platform')
->text_is('h1 span', 'KorAP - Corpus Analysis Platform')
->element_exists('div.intro')
- ->text_is('div.intro h2', 'This is a custom intro page!');
+ ->text_is('div.intro h2', 'This is a custom intro page!')
+ ->element_exists('meta[name="DC.description"][content="KorAP - Corpus Analysis Platform"]')
+ ->element_exists('meta[name="keywords"][content^="KorAP"]')
+ ->element_exists('body[itemscope][itemtype="http://schema.org/WebApplication"]')
+ ;
$t->get_ok('/huhuhuhuhu')
->status_is(404)
->text_is('title', 'KorAP: 404 - Page not found')
->text_is('h1 span', 'KorAP: 404 - Page not found');
+$t->get_ok('/?q=hui')
+ ->status_is(200)
+ ->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();