Akron | 1b1a271 | 2018-12-21 14:59:05 +0100 | [diff] [blame] | 1 | use Mojo::Base -strict; |
| 2 | use Mojolicious::Lite; |
| 3 | use Test::More; |
| 4 | use Test::Mojo; |
| 5 | use utf8; |
| 6 | |
| 7 | my $t = Test::Mojo->new('Kalamar' => { |
| 8 | Kalamar => { |
Akron | 63d963b | 2019-07-05 15:35:51 +0200 | [diff] [blame] | 9 | api_path => 'xyz', |
Akron | 1b1a271 | 2018-12-21 14:59:05 +0100 | [diff] [blame] | 10 | navi_ext => [ |
| 11 | { |
| 12 | title => 'Privacy', |
| 13 | id => 'privacy' |
| 14 | } |
| 15 | ] |
| 16 | } |
| 17 | }); |
| 18 | |
| 19 | $t->get_ok('/doc') |
hebasta | da903dd | 2021-07-20 15:58:48 +0200 | [diff] [blame^] | 20 | ->text_is('nav > ul.nav > li.active a', 'Query Languages') |
Akron | 1b1a271 | 2018-12-21 14:59:05 +0100 | [diff] [blame] | 21 | ->text_is('nav > ul.nav > li:last-child a', 'Privacy') |
Akron | 9490e3b | 2019-10-17 12:26:29 +0200 | [diff] [blame] | 22 | ->element_exists('nav > ul.nav > li:last-child a[href=/doc/privacy#page-top]') |
Akron | 1b1a271 | 2018-12-21 14:59:05 +0100 | [diff] [blame] | 23 | ; |
| 24 | |
| 25 | done_testing; |