| use Test::More skip_all => 'No remote tests'; |
| my $t = Test::Mojo->new('Kalamar'); |
| ->text_is('title', 'KorAP - Corpus Analysis Platform') |
| ->text_like('h1 span', qr/KorAP - Corpus Analysis Platform/i) |
| ->text_like('h1 span', qr/KorAP: Find "test"/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) |
| $t->get_ok('/?q=test&p=2') |
| # ->text_is('pre.query.serial span', 'JSON-LD Serialization for "test"') |
| ->text_like('#total-results', qr/\d+$/) |
| ->text_is('#pagination a[rel=self] span', 2) |