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 (