From daaa16c182af5ed550b124be3708565a91a5c669 Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Tue, 19 Apr 2022 14:11:15 +1000 Subject: [PATCH] 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. --- internal/suites/action_totp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/suites/action_totp.go b/internal/suites/action_totp.go index bf3d16bc..d71b7712 100644 --- a/internal/suites/action_totp.go +++ b/internal/suites/action_totp.go @@ -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])) } }