blob: 1b06146e9c466614ca846c7197100be9397a57aa [file] [log] [blame]
Nils Diewalda898dac2015-05-06 21:04:16 +00001use Mojo::Base -strict;
2use lib '../lib', 'lib';
3use Test::More;
4use Test::Mojo;
5
6# Test the documentation
7
8my $t = Test::Mojo->new('Kalamar');
9
10$t->get_ok('/doc/ql/poliqarp-plus')
11 ->status_is(200)
12 ->text_like('title', qr/poliqarp/i)
13 ->element_exists('aside.active')
14 ->element_exists('main.tutorial')
15 ->element_exists('header')
16 ->element_exists('aside nav')
Nils Diewalda748b0e2015-05-19 22:54:06 +000017 ->text_is('h1 span', 'KorAP: Poliqarp+')
18 ->element_exists('li.folded.active')
19 ->text_is('li.folded.active a', 'Poliqarp+');
Nils Diewalda898dac2015-05-06 21:04:16 +000020
21$t->get_ok('/doc/ql/poliqarp-plus?embedded=true')
22 ->status_is(200)
23 ->text_like('title', qr/poliqarp/i)
24 ->element_exists('aside.active')
25 ->element_exists('main.tutorial')
Nils Diewalda748b0e2015-05-19 22:54:06 +000026 ->element_exists_not('header')
27 ->element_exists('li.folded.active')
28 ->text_is('li.folded.active a', 'Poliqarp+');
Nils Diewalda898dac2015-05-06 21:04:16 +000029
30
31done_testing();