| Akron | 0e1ed24 | 2018-10-11 13:22:00 +0200 | [diff] [blame^] | 1 | use Mojo::Base -strict; |
| 2 | use Test::Mojo; | ||||
| 3 | use Test::More; | ||||
| 4 | |||||
| 5 | my $t = Test::Mojo->new('Kalamar'); | ||||
| 6 | |||||
| 7 | # Query passed | ||||
| 8 | $t->get_ok('/q2?q=hui') | ||||
| 9 | ->status_is(200) | ||||
| 10 | ->text_is('#error','') | ||||
| 11 | ->text_is('title', 'KorAP: Find »hui« with Poliqarp') | ||||
| 12 | ->element_exists('meta[name="DC.title"][content="KorAP: Find »hui« with Poliqarp"]') | ||||
| 13 | ->element_exists('body[itemscope][itemtype="http://schema.org/SearchResultsPage"]') | ||||
| 14 | ; | ||||
| 15 | |||||
| 16 | |||||
| 17 | |||||
| 18 | done_testing; | ||||