@@ -132,11 +132,12 @@ describe('MatStepper', () => {
132
132
expect ( stepperComponent . selected instanceof MatStep ) . toBe ( true ) ;
133
133
} ) ;
134
134
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' ) ;
140
141
} ) ;
141
142
142
143
it ( 'should display the correct label' , ( ) => {
@@ -383,15 +384,6 @@ describe('MatStepper', () => {
383
384
animationDoneSubscription . unsubscribe ( ) ;
384
385
} ) ;
385
386
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
-
395
387
it ( 'should adjust the index when removing a step before the current one' , ( ) => {
396
388
const stepperComponent : MatStepper = fixture . debugElement . query (
397
389
By . css ( 'mat-stepper' ) ,
0 commit comments