Fix unit tests (#2589)
This commit is contained in:
parent
4a81c37adc
commit
809faf68c1
|
@ -40,7 +40,6 @@
|
|||
</TMPL_LOOP>
|
||||
</div>
|
||||
<div class="modal-footer justify-content-between">
|
||||
|
||||
<button id="closefinduserform" type="button" class="btn btn-secondary mr-auto" data-dismiss="modal"><span trspan="close">Close</span></button>
|
||||
<button id="finduserbutton" type="submit" class="btn btn-info" data-dismiss="modal">
|
||||
<span class="fa fa-search"></span>
|
||||
|
|
|
@ -88,9 +88,9 @@ ok(
|
|||
'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 class="input-group-text" for="cn">Name</label>%, 'label for="cn"' )
|
||||
or explain( $res->[2]->[0], 'label for="cn"' );
|
||||
or explain( $res->[2]->[0], 'id="findUser_type" not found' );
|
||||
ok( $res->[2]->[0] =~ m%<option selected>Name...</option>%, 'Name...' )
|
||||
or explain( $res->[2]->[0], 'Name...' );
|
||||
ok( $res->[2]->[0] !~ m%<option value=""></option>%, 'Empty option not found' )
|
||||
or explain( $res->[2]->[0], 'Empty option not found' );
|
||||
ok( $res->[2]->[0] =~ m%<option value="The Daleks">daleks</option>%,
|
||||
|
|
|
@ -22,9 +22,9 @@ my $client = LLNG::Manager::Test->new( {
|
|||
findUserControl => '^[\w*\s]+$',
|
||||
findUserWildcard => '*',
|
||||
findUserSearchingAttributes => {
|
||||
'uid#fdgd#1' => undef,
|
||||
'guy##1' => 'Kind',
|
||||
'cn#Name#1' => 'Bad Guy; Not a good person; BB; Bad Boy'
|
||||
'uid#fdgd#1' => undef,
|
||||
'guy##1' => 'Kind',
|
||||
'cn#Name#1' => 'Bad Guy; Not a good person; BB; Bad Boy'
|
||||
},
|
||||
findUserExcludingAttributes =>
|
||||
{ type => 'mutant', uid => 'rtyler' },
|
||||
|
@ -87,8 +87,8 @@ ok(
|
|||
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 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 selected>Name...</option>%, 'Name...' )
|
||||
or explain( $res->[2]->[0], 'Name...' );
|
||||
ok( $res->[2]->[0] =~ m%<option value=""></option>%, 'Empty option' )
|
||||
or explain( $res->[2]->[0], 'Empty option' );
|
||||
ok( $res->[2]->[0] =~ m%<option value="BB">Bad Boy</option>%, 'BB option' )
|
||||
|
|
Loading…
Reference in New Issue
Block a user