Nils Diewald | a898dac | 2015-05-06 21:04:16 +0000 | [diff] [blame] | 1 | use Mojo::Base -strict; |
| 2 | use lib '../lib', 'lib'; |
| 3 | use Test::More; |
| 4 | use Test::Mojo; |
| 5 | |
| 6 | # Test the documentation |
| 7 | |
| 8 | my $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 | |
| 27 | done_testing(); |