File tree Expand file tree Collapse file tree
src/tests/components/Settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -424,6 +424,18 @@ describe('Settings', () => {
424424 expect ( adminItem . props ( 'name' ) ) . toBeTruthy ( )
425425 expect ( adminItem . props ( 'href' ) ) . toBeTruthy ( )
426426 } )
427+
428+ it ( 'does not use fallback icon prop when custom icon slot is present' , ( ) => {
429+ wrapper = createWrapper ( true )
430+ const items = getItems ( )
431+ const preferencesItem = expectItem ( findItemByName ( items , 'Preferences' ) )
432+ const policiesItem = expectItem ( findItemByName ( items , 'Policies' ) )
433+ const adminItem = expectItem ( findItemByName ( items , 'Administration' ) )
434+
435+ expect ( preferencesItem . props ( 'icon' ) ) . toBeUndefined ( )
436+ expect ( policiesItem . props ( 'icon' ) ) . toBeUndefined ( )
437+ expect ( adminItem . props ( 'icon' ) ) . toBeUndefined ( )
438+ } )
427439 } )
428440
429441 describe ( 'RULE: icons render correctly' , ( ) => {
You can’t perform that action at this time.
0 commit comments