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.
This commit is contained in:
Amir Zarrinkafsh 2022-04-19 14:11:15 +10:00 committed by GitHub
parent 92e219b34b
commit daaa16c182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]))
}
}