blob: 2bdc69a8006137d89baeea92899112a0ef70f09a [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')
Akron9490e3b2019-10-17 12:26:29 +020022 ->element_exists('nav > ul.nav > li:last-child a[href=/doc/privacy#page-top]')
Akron1b1a2712018-12-21 14:59:05 +010023 ;
24
25done_testing;