@@ -132,11 +132,12 @@ describe('MatStepper', () => {
132132 expect ( stepperComponent . selected instanceof MatStep ) . toBe ( true ) ;
133133 } ) ;
134134
135- it ( 'should set the "region" role on the vertical stepper' , ( ) => {
136- const stepperEl = fixture . debugElement . query (
137- By . css ( 'mat-vertical-stepper-wrapper' ) ,
138- ) ! . nativeElement ;
139- expect ( stepperEl . getAttribute ( 'role' ) ) . toBe ( 'region' ) ;
135+ it ( 'should set the "group" role on a vertical stepper' , ( ) => {
136+ const stepperWrapper = fixture . debugElement . query ( By . css ( '.mat-vertical-stepper-wrapper' ) ) ;
137+ expect ( stepperWrapper ) . toBeTruthy ( ) ;
138+
139+ const stepperEl = stepperWrapper ! . nativeElement ;
140+ expect ( stepperEl . getAttribute ( 'role' ) ) . toBe ( 'group' ) ;
140141 } ) ;
141142
142143 it ( 'should display the correct label' , ( ) => {
@@ -383,15 +384,6 @@ describe('MatStepper', () => {
383384 animationDoneSubscription . unsubscribe ( ) ;
384385 } ) ;
385386
386- it ( 'should set the correct aria-posinset and aria-setsize' , ( ) => {
387- const headers = Array . from < HTMLElement > (
388- fixture . nativeElement . querySelectorAll ( '.mat-step-header' ) ,
389- ) ;
390-
391- expect ( headers . map ( header => header . getAttribute ( 'aria-posinset' ) ) ) . toEqual ( [ '1' , '2' , '3' ] ) ;
392- expect ( headers . every ( header => header . getAttribute ( 'aria-setsize' ) === '3' ) ) . toBe ( true ) ;
393- } ) ;
394-
395387 it ( 'should adjust the index when removing a step before the current one' , ( ) => {
396388 const stepperComponent : MatStepper = fixture . debugElement . query (
397389 By . css ( 'mat-stepper' ) ,
0 commit comments