File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,8 @@ class SingleOtpInput extends PureComponent {
86
86
style = { { display : 'flex' , alignItems : 'center' } }
87
87
>
88
88
< input
89
- aria-label = { `${
90
- index === 0 ? 'Please enter verification code. ' : ''
91
- } ${ isInputNum ? 'Digit' : 'Character' } ${ index + 1 } `}
89
+ aria-label = { `${ index === 0 ? 'Please enter verification code. ' : ''
90
+ } ${ isInputNum ? 'Digit' : 'Character' } ${ index + 1 } `}
92
91
autoComplete = "off"
93
92
style = { Object . assign (
94
93
{ width : '1em' , textAlign : 'center' } ,
@@ -334,6 +333,8 @@ class OtpInput extends Component {
334
333
isInputNum = { isInputNum }
335
334
isInputSecure = { isInputSecure }
336
335
className = { className }
336
+ data-cy = { this . props [ "data-cy" ] ? `${ this . props [ "data-cy" ] } -${ i } ` : null }
337
+ data-testid = { this . props [ "data-testid" ] ? `${ this . props [ "data-testid" ] } -${ i } ` : null }
337
338
/>
338
339
) ;
339
340
}
You can’t perform that action at this time.
0 commit comments