Fix unit tests (#2589)
This commit is contained in:
parent
b70189f2f6
commit
a524e3cd7c
|
@ -759,7 +759,7 @@ t/78-2F-UpgradeOnly.t
|
|||
t/79-2F-Yubikey-from-Session.t
|
||||
t/79-2F-Yubikey.t
|
||||
t/90-Translations.t
|
||||
t/91-handler-cache-cleaned.t
|
||||
t/91-Handler-cache-cleaned.t
|
||||
t/91-Memory-Leak.t
|
||||
t/99-Dont-load-Dumper.t
|
||||
t/99-pod.t
|
||||
|
|
|
@ -57,7 +57,7 @@ SKIP: {
|
|||
( $host, $url, $query ) = expectForm( $res, '#', undef, 'uid', 'cn' );
|
||||
ok(
|
||||
$res->[2]->[0] =~
|
||||
m%<input id="spoofIdfield" name="spoofId" type="text" class="form-control" value="" autocomplete="off"%,
|
||||
m%<input name="spoofId" type="text" class="form-control" value="" autocomplete="off" trplaceholder="spoofId" aria-required="false"%,
|
||||
'value=""'
|
||||
) or explain( $res->[2]->[0], 'value=""' );
|
||||
|
||||
|
|
|
@ -84,12 +84,12 @@ m%<input id="findUser_uid" name="uid" type="text" autocomplete="off" class="form
|
|||
) or explain( $res->[2]->[0], 'id="findUser_uid"' );
|
||||
ok(
|
||||
$res->[2]->[0] =~
|
||||
m%<select class="form-control" id="findUser_cn" name="cn">%,
|
||||
m%<select class="custom-select" id="findUser_cn" name="cn">%,
|
||||
'id="findUser_cn"'
|
||||
) or explain( $res->[2]->[0], 'id="findUser_cn"' );
|
||||
ok( $res->[2]->[0] !~ m%id="findUser_type"%, 'id="findUser_type" not found' )
|
||||
or explain( $res->[2]->[0], 'id="findUser_cn" not found' );
|
||||
ok( $res->[2]->[0] =~ m%<label for="cn">Name</label>%, 'label for="cn"' )
|
||||
ok( $res->[2]->[0] =~ m%<label class="input-group-text" for="cn">Name</label>%, 'label for="cn"' )
|
||||
or explain( $res->[2]->[0], 'label for="cn"' );
|
||||
ok( $res->[2]->[0] !~ m%<option value=""></option>%, 'Empty option not found' )
|
||||
or explain( $res->[2]->[0], 'Empty option not found' );
|
||||
|
|
|
@ -84,10 +84,10 @@ m%<input id="findUser_uid" name="uid" type="text" autocomplete="off" class="form
|
|||
) or explain( $res->[2]->[0], 'id="findUser_uid"' );
|
||||
ok(
|
||||
$res->[2]->[0] =~
|
||||
m%<select class="form-control" id="findUser_cn" name="cn">%,
|
||||
m%<select class="custom-select" id="findUser_cn" name="cn">%,
|
||||
'id="findUser_cn"'
|
||||
) or explain( $res->[2]->[0], 'id="findUser_cn"' );
|
||||
ok( $res->[2]->[0] =~ m%<label for="cn">Name</label>%, 'label for="cn"' )
|
||||
ok( $res->[2]->[0] =~ m%<label class="input-group-text" for="cn">Name</label>%, 'label for="cn"' )
|
||||
or explain( $res->[2]->[0], 'label for="cn"' );
|
||||
ok( $res->[2]->[0] =~ m%<option value=""></option>%, 'Empty option' )
|
||||
or explain( $res->[2]->[0], 'Empty option' );
|
||||
|
|
Loading…
Reference in New Issue
Block a user