@@ -18,6 +18,7 @@ import { IgxSelectModule } from './select.module';
18
18
const CSS_CLASS_INPUT_GROUP = 'igx-input-group' ;
19
19
const CSS_CLASS_INPUT = 'igx-input-group__input' ;
20
20
const CSS_CLASS_INPUT_GROUP_HINT = 'igx-input-group__hint' ;
21
+ const CSS_CLASS_HINT = 'igx-input-group__hint-item--start' ;
21
22
const CSS_CLASS_TOGGLE_BUTTON = 'igx-icon' ;
22
23
const CSS_CLASS_DROPDOWN_LIST_SCROLL = 'igx-drop-down__list-scroll' ;
23
24
const CSS_CLASS_DROPDOWN_LIST = 'igx-drop-down__list' ;
@@ -2516,9 +2517,18 @@ describe('igxSelect', () => {
2516
2517
select = fixture . componentInstance . select ;
2517
2518
fixture . detectChanges ( ) ;
2518
2519
} ) ) ;
2519
- it ( 'should not open dropdown on hint click' ,
2520
+ it ( 'should not open dropdown on hint container click' ,
2520
2521
fakeAsync ( ( ) => {
2521
- const hint = fixture . debugElement . query ( By . css ( '.' + CSS_CLASS_INPUT_GROUP_HINT ) ) ;
2522
+ const hintContainer = fixture . debugElement . query ( By . css ( '.' + CSS_CLASS_INPUT_GROUP_HINT ) ) ;
2523
+ expect ( select . collapsed ) . toBeTruthy ( ) ;
2524
+ hintContainer . nativeElement . click ( ) ;
2525
+ tick ( ) ;
2526
+ fixture . detectChanges ( ) ;
2527
+ expect ( select . collapsed ) . toBeTruthy ( ) ;
2528
+ } ) ) ;
2529
+ it ( 'should not open dropdown on hint element click' ,
2530
+ fakeAsync ( ( ) => {
2531
+ const hint = fixture . debugElement . query ( By . css ( '.' + CSS_CLASS_HINT ) ) ;
2522
2532
expect ( select . collapsed ) . toBeTruthy ( ) ;
2523
2533
hint . nativeElement . click ( ) ;
2524
2534
tick ( ) ;
0 commit comments