blob: 1b06146e9c466614ca846c7197100be9397a57aa [file] [log] [blame]
use Mojo::Base -strict;
use lib '../lib', 'lib';
use Test::More;
use Test::Mojo;
# Test the documentation
my $t = Test::Mojo->new('Kalamar');
$t->get_ok('/doc/ql/poliqarp-plus')
->status_is(200)
->text_like('title', qr/poliqarp/i)
->element_exists('aside.active')
->element_exists('main.tutorial')
->element_exists('header')
->element_exists('aside nav')
->text_is('h1 span', 'KorAP: Poliqarp+')
->element_exists('li.folded.active')
->text_is('li.folded.active a', 'Poliqarp+');
$t->get_ok('/doc/ql/poliqarp-plus?embedded=true')
->status_is(200)
->text_like('title', qr/poliqarp/i)
->element_exists('aside.active')
->element_exists('main.tutorial')
->element_exists_not('header')
->element_exists('li.folded.active')
->text_is('li.folded.active a', 'Poliqarp+');
done_testing();