From 41d61d0f090fd5c607897a7c7101dc39259c7330 Mon Sep 17 00:00:00 2001 From: kirillzyusko Date: Tue, 5 Nov 2024 17:44:02 +0100 Subject: [PATCH] e2e: fixed typing test --- .../ComposerWithSuggestions/index.e2e.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/index.e2e.tsx b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/index.e2e.tsx index f3390fe10694..336b5ab22424 100644 --- a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/index.e2e.tsx +++ b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/index.e2e.tsx @@ -57,11 +57,12 @@ function ComposerWithSuggestionsE2e(props: ComposerWithSuggestionsProps, ref: Fo textInputRef.current?.blur(); setFocus(); - // Simulate user behavior and don't set focus immediately - }, 5_000); + // 1000ms is enough time for any keyboard to open + }, 1_000); }; - setFocus(); + // Simulate user behavior and don't set focus immediately + setTimeout(setFocus, 2_000); }, []); return (