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') |
| 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 | |
| 25 | done_testing; |