1- describe ( 'Component: pfEnptyState ' , function ( ) {
1+ describe ( 'Component: pfEmptyState ' , function ( ) {
22 var $scope ;
33 var $compile ;
44 var element ;
@@ -68,9 +68,9 @@ describe('Component: pfEnptyState', function () {
6868 compileHTML ( '<pf-empty-state config="config" action-buttons="actionButtons"></pf-empty-state>' , $scope ) ;
6969
7070 expect ( element . find ( '.pficon-add-circle-o' ) . length ) . toBe ( 1 ) ;
71- expect ( element . find ( '# title' ) . text ( ) ) . toContain ( 'Empty State Title' ) ;
72- expect ( element . find ( '# info' ) . text ( ) ) . toContain ( 'This is the Empty State component' ) ;
73- expect ( element . find ( '# helpLink' ) . text ( ) ) . toContain ( 'For more information please see' ) ;
71+ expect ( element . find ( '.blank-state-pf- title' ) . text ( ) ) . toContain ( 'Empty State Title' ) ;
72+ expect ( element . find ( '.blank-state-pf- info' ) . text ( ) ) . toContain ( 'This is the Empty State component' ) ;
73+ expect ( element . find ( '.blank-state-pf- helpLink' ) . text ( ) ) . toContain ( 'For more information please see' ) ;
7474 expect ( element . find ( 'a' ) . text ( ) ) . toContain ( 'pfExample' ) ;
7575 expect ( element . find ( 'a' ) . prop ( 'href' ) ) . toContain ( '#/api/patternfly.views.component:pfEmptyState' ) ;
7676
@@ -89,11 +89,11 @@ describe('Component: pfEnptyState', function () {
8989 it ( 'should only display main default title when no config and actionButtons defined' , function ( ) {
9090 compileHTML ( '<pf-empty-state></pf-empty-state>' , $scope ) ;
9191
92- expect ( element . find ( '# title' ) . text ( ) ) . toContain ( 'No Items Available' ) ;
92+ expect ( element . find ( '.blank-state-pf- title' ) . text ( ) ) . toContain ( 'No Items Available' ) ;
9393
9494 expect ( element . find ( '.blank-slate-pf-icon' ) . length ) . toBe ( 0 ) ;
95- expect ( element . find ( '# info' ) . length ) . toBe ( 0 ) ;
96- expect ( element . find ( '# helpLink' ) . length ) . toBe ( 0 ) ;
95+ expect ( element . find ( '. info' ) . length ) . toBe ( 0 ) ;
96+ expect ( element . find ( '. helpLink' ) . length ) . toBe ( 0 ) ;
9797 expect ( element . find ( 'button' ) . length ) . toBe ( 0 ) ;
9898 } ) ;
9999} ) ;
0 commit comments