Skip to content

Commit a0b62cb

Browse files
committed
fix(material/stepper): add data-test-index attribute to improve unit testing
Updates previous fix to add the data-test-index attribute to the step-header to improve unit testing for all developers working with the stepper.
1 parent 2d6f3ca commit a0b62cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/material/stepper/stepper.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
[attr.aria-labelledby]="(!step.ariaLabel && step.ariaLabelledby) ? step.ariaLabelledby : null"
8585
[attr.aria-disabled]="_stepIsNavigable(i, step) ? null : true"
8686
[attr.aria-owns]="_getStepContentId(i)"
87+
[attr.data-test-index]="i"
8788
[index]="i"
8889
[state]="_getIndicatorType(i, step.state)"
8990
[label]="step.stepLabel || step.label"

0 commit comments

Comments
 (0)