blob: 8ead445f2d4833a8ceaa0b47e79acffd45e47d7a [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')
hebastada903dd2021-07-20 15:58:48 +020020 ->text_is('nav > ul.nav > li.active a', 'Query Languages')
Akron1b1a2712018-12-21 14:59:05 +010021 ->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;