1
- describe ( 'Component: pfEnptyState ' , function ( ) {
1
+ describe ( 'Component: pfEmptyState ' , function ( ) {
2
2
var $scope ;
3
3
var $compile ;
4
4
var element ;
@@ -68,9 +68,9 @@ describe('Component: pfEnptyState', function () {
68
68
compileHTML ( '<pf-empty-state config="config" action-buttons="actionButtons"></pf-empty-state>' , $scope ) ;
69
69
70
70
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 ( '. 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' ) ;
74
74
expect ( element . find ( 'a' ) . text ( ) ) . toContain ( 'pfExample' ) ;
75
75
expect ( element . find ( 'a' ) . prop ( 'href' ) ) . toContain ( '#/api/patternfly.views.component:pfEmptyState' ) ;
76
76
@@ -89,11 +89,11 @@ describe('Component: pfEnptyState', function () {
89
89
it ( 'should only display main default title when no config and actionButtons defined' , function ( ) {
90
90
compileHTML ( '<pf-empty-state></pf-empty-state>' , $scope ) ;
91
91
92
- expect ( element . find ( '# title' ) . text ( ) ) . toContain ( 'No Items Available' ) ;
92
+ expect ( element . find ( '. title' ) . text ( ) ) . toContain ( 'No Items Available' ) ;
93
93
94
94
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 ) ;
97
97
expect ( element . find ( 'button' ) . length ) . toBe ( 0 ) ;
98
98
} ) ;
99
99
} ) ;
0 commit comments