blob: 24503f7410b8bc032d8d2dc5be0c1ccb031e624f [file] [log] [blame]
Akron1b1a2712018-12-21 14:59:05 +01001use Mojo::Base -strict;
2use Mojolicious::Lite;
3use Test::More;
4use Test::Mojo;
5use utf8;
6
7my $t = Test::Mojo->new('Kalamar' => {
8 Kalamar => {
9 api => 'xyz',
10 navi_ext => [
11 {
12 title => 'Privacy',
13 id => 'privacy'
14 }
15 ]
16 }
17});
18
19$t->get_ok('/doc')
20 ->text_is('nav > ul.nav > li.active a', 'KorAP')
21 ->text_is('nav > ul.nav > li:last-child a', 'Privacy')
22 ->element_exists('nav > ul.nav > li:last-child a[href=/doc/privacy#tutorial-top]')
23 ;
24
25done_testing;