refactor(suites): validate totp inputs (#3218)
This change validates the inputs for the TOTP code entry. This was previously discarded and left unvalidated during the move to rod from within the integration tests.pull/3168/head^2
parent
92e219b34b
commit
daaa16c182
|
@ -31,7 +31,7 @@ func (rs *RodSession) doEnterOTP(t *testing.T, page *rod.Page, code string) {
|
|||
inputs := rs.WaitElementsLocatedByID(t, page, "otp-input input")
|
||||
|
||||
for i := 0; i < len(code); i++ {
|
||||
_ = inputs[i].Input(string(code[i]))
|
||||
_ = inputs[i].MustPress(rune(code[i]))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue