blob: 476d4bf1fc048be1ead4cf1eefb5df12388c0c14 [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')
17 ->content_is('');
18
19$t->get_ok('/doc/ql/poliqarp-plus?embedded=true')
20 ->status_is(200)
21 ->text_like('title', qr/poliqarp/i)
22 ->element_exists('aside.active')
23 ->element_exists('main.tutorial')
24 ->element_exists_not('header');
25
26
27done_testing();