Skip to content

Commit

Permalink
Merge pull request Expensify#52062 from margelo/fix/e2e-typing-test
Browse files Browse the repository at this point in the history
[NoQA] e2e: fixed typing test
  • Loading branch information
jasperhuangg authored Nov 6, 2024
2 parents e2987bd + 41d61d0 commit 92f5c54
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 92f5c54

Please sign in to comment.