Unit test for portalEnablePasswordDisplay (#2454)

This commit is contained in:
Clément OUDOT 2021-07-07 19:43:56 +02:00
parent b3931d3e50
commit 82dc1de87f

View File

@ -0,0 +1,18 @@
use Test::More;
use strict;
require 't/test-lib.pm';
my $res;
my $client = LLNG::Manager::Test->new(
{ ini => { logLevel => 'error', 'portalEnablePasswordDisplay' => 1 } } );
ok( $res = $client->_get( '/', accept => 'text/html' ), 'Display portal' );
ok( $res->[2]->[0] =~ m%<i class="fa fa-eye-slash toggle-password">%, ' toggle password icon found' )
or print STDERR Dumper( $res->[2]->[0] );
count(2);
clean_sessions();
done_testing( count() );