blob: 8224fa7f7cb251916c5ef890014b9d2796d77741 [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 => {
Akron63d963b2019-07-05 15:35:51 +02009 api_path => 'xyz',
Akron1b1a2712018-12-21 14:59:05 +010010 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;