Skip to content

Commit

Permalink
e2e: fixed typing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillzyusko committed Nov 5, 2024
1 parent 657531f commit 41d61d0
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 41d61d0

Please sign in to comment.