@@ -3436,8 +3436,11 @@ describe('igxCombo', () => {
34363436 it ( 'should add/remove asterisk when setting validators dynamically' , ( ) => {
34373437 let inputGroupIsRequiredClass = fixture . debugElement . query ( By . css ( '.' + CSS_CLASS_INPUTGROUP_REQUIRED ) ) ;
34383438 let asterisk = window . getComputedStyle ( fixture . debugElement . query ( By . css ( '.' + CSS_CLASS_INPUTGROUP_LABEL ) ) . nativeElement , ':after' ) . content ;
3439+ input = fixture . debugElement . query ( By . css ( `.${ CSS_CLASS_COMBO_INPUTGROUP } ` ) ) ;
34393440 expect ( asterisk ) . toBe ( '"*"' ) ;
34403441 expect ( inputGroupIsRequiredClass ) . toBeDefined ( ) ;
3442+ console . log ( input . nativeElement ) ;
3443+ expect ( input . nativeElement . getAttribute ( 'aria-required' ) ) . toMatch ( 'true' ) ;
34413444
34423445 fixture . componentInstance . reactiveForm . controls . townCombo . clearValidators ( ) ;
34433446 fixture . componentInstance . reactiveForm . controls . townCombo . updateValueAndValidity ( ) ;
@@ -3446,6 +3449,7 @@ describe('igxCombo', () => {
34463449 asterisk = window . getComputedStyle ( fixture . debugElement . query ( By . css ( '.' + CSS_CLASS_INPUTGROUP_LABEL ) ) . nativeElement , ':after' ) . content ;
34473450 expect ( asterisk ) . toBe ( 'none' ) ;
34483451 expect ( inputGroupIsRequiredClass ) . toBeNull ( ) ;
3452+ expect ( input . nativeElement . getAttribute ( 'aria-required' ) ) . toMatch ( 'false' ) ;
34493453
34503454 fixture . componentInstance . reactiveForm . controls . townCombo . setValidators ( Validators . required ) ;
34513455 fixture . componentInstance . reactiveForm . controls . townCombo . updateValueAndValidity ( ) ;
@@ -3454,6 +3458,7 @@ describe('igxCombo', () => {
34543458 asterisk = window . getComputedStyle ( fixture . debugElement . query ( By . css ( '.' + CSS_CLASS_INPUTGROUP_LABEL ) ) . nativeElement , ':after' ) . content ;
34553459 expect ( asterisk ) . toBe ( '"*"' ) ;
34563460 expect ( inputGroupIsRequiredClass ) . toBeDefined ( ) ;
3461+ expect ( input . nativeElement . getAttribute ( 'aria-required' ) ) . toMatch ( 'true' ) ;
34573462 } ) ;
34583463
34593464 it ( 'Should update validity state when programmatically setting errors on reactive form controls' , fakeAsync ( ( ) => {
0 commit comments