From d80d66e07a2335c32e652582f6eb3a4906717c0d Mon Sep 17 00:00:00 2001 From: Christophe Maudoux Date: Fri, 3 Jun 2022 09:31:24 +0200 Subject: [PATCH] Update unit test (#2759) --- lemonldap-ng-portal/t/19-Auth-Null.t | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lemonldap-ng-portal/t/19-Auth-Null.t b/lemonldap-ng-portal/t/19-Auth-Null.t index da2924a43..c3cfe140a 100644 --- a/lemonldap-ng-portal/t/19-Auth-Null.t +++ b/lemonldap-ng-portal/t/19-Auth-Null.t @@ -12,12 +12,17 @@ my $client = LLNG::Manager::Test->new( { useSafeJail => 1, authentication => 'Null', userDB => 'Same', + scrollTop => 100 } } ); -ok( $res = $client->_get('/'), 'Auth query' ); -count(1); +ok( $res = $client->_get('/', accept => 'text/html'), 'Auth query' ); +ok( $res->[2]->[0] =~ m%"scrollTop":100%, 'scrollTop param found' ) + or print STDERR Dumper( $res->[2]->[0] ); +ok( $res->[2]->[0] =~ m%id="btn-back-to-top"%, 'scrollTop button found' ) + or print STDERR Dumper( $res->[2]->[0] ); +count(3); expectOK($res); my $id = expectCookie($res);