File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -528,4 +528,18 @@ describe('Directive: pfDataList', function () {
528528 var openItem = element . find ( '.list-group-item-container' ) ;
529529 expect ( openItem . length ) . toBe ( 1 ) ;
530530 } ) ;
531+
532+ it ( 'should allow expanding rows to disable individual expansion' , function ( ) {
533+ $scope . systemModel [ 0 ] . disableRowExpansion = true ;
534+ $scope . listConfig . useExpandingRows = true ;
535+ var htmlTmp = '<div pf-list-view items="systemModel" ' +
536+ ' config="listConfig">' +
537+ '</div>' ;
538+
539+ compileHTML ( htmlTmp , $scope ) ;
540+
541+ // Make sure one item is hiding the expansion action (based on the item settings above)
542+ items = element . find ( '.list-view-pf-expand .fa-angle-right.ng-hide' ) ;
543+ expect ( items . length ) . toBe ( 1 ) ;
544+ } ) ;
531545} ) ;
You can’t perform that action at this time.
0 commit comments