@@ -3390,8 +3390,11 @@ describe('igxCombo', () => {
33903390 it ( 'should add/remove asterisk when setting validators dynamically' , ( ) => {
33913391 let inputGroupIsRequiredClass = fixture . debugElement . query ( By . css ( '.' + CSS_CLASS_INPUTGROUP_REQUIRED ) ) ;
33923392 let asterisk = window . getComputedStyle ( fixture . debugElement . query ( By . css ( '.' + CSS_CLASS_INPUTGROUP_LABEL ) ) . nativeElement , ':after' ) . content ;
3393+ input = fixture . debugElement . query ( By . css ( `.${ CSS_CLASS_COMBO_INPUTGROUP } ` ) ) ;
33933394 expect ( asterisk ) . toBe ( '"*"' ) ;
33943395 expect ( inputGroupIsRequiredClass ) . toBeDefined ( ) ;
3396+ console . log ( input . nativeElement ) ;
3397+ expect ( input . nativeElement . getAttribute ( 'aria-required' ) ) . toMatch ( 'true' ) ;
33953398
33963399 fixture . componentInstance . reactiveForm . controls . townCombo . clearValidators ( ) ;
33973400 fixture . componentInstance . reactiveForm . controls . townCombo . updateValueAndValidity ( ) ;
@@ -3400,6 +3403,7 @@ describe('igxCombo', () => {
34003403 asterisk = window . getComputedStyle ( fixture . debugElement . query ( By . css ( '.' + CSS_CLASS_INPUTGROUP_LABEL ) ) . nativeElement , ':after' ) . content ;
34013404 expect ( asterisk ) . toBe ( 'none' ) ;
34023405 expect ( inputGroupIsRequiredClass ) . toBeNull ( ) ;
3406+ expect ( input . nativeElement . getAttribute ( 'aria-required' ) ) . toMatch ( 'false' ) ;
34033407
34043408 fixture . componentInstance . reactiveForm . controls . townCombo . setValidators ( Validators . required ) ;
34053409 fixture . componentInstance . reactiveForm . controls . townCombo . updateValueAndValidity ( ) ;
@@ -3408,6 +3412,7 @@ describe('igxCombo', () => {
34083412 asterisk = window . getComputedStyle ( fixture . debugElement . query ( By . css ( '.' + CSS_CLASS_INPUTGROUP_LABEL ) ) . nativeElement , ':after' ) . content ;
34093413 expect ( asterisk ) . toBe ( '"*"' ) ;
34103414 expect ( inputGroupIsRequiredClass ) . toBeDefined ( ) ;
3415+ expect ( input . nativeElement . getAttribute ( 'aria-required' ) ) . toMatch ( 'true' ) ;
34113416 } ) ;
34123417
34133418 it ( 'Should update validity state when programmatically setting errors on reactive form controls' , fakeAsync ( ( ) => {
0 commit comments