fix(ux) keyboard input hangs while waiting for keyboard input. (#10121)

This commit is contained in:
Jacob Richman
2025-10-16 20:38:06 -07:00
committed by GitHub
parent cd0f9fe22f
commit 406f0baaf2
6 changed files with 778 additions and 96 deletions
@@ -141,7 +141,7 @@ describe('PermissionsModifyTrustDialog', () => {
await waitFor(() => expect(lastFrame()).not.toContain('Loading...'));
act(() => {
stdin.write('\x1b'); // escape key
stdin.write('\u001b[27u'); // Kitty escape key
});
await waitFor(() => {
@@ -201,7 +201,7 @@ describe('PermissionsModifyTrustDialog', () => {
await waitFor(() => expect(lastFrame()).not.toContain('Loading...'));
act(() => stdin.write('\x1b')); // Press escape
act(() => stdin.write('\u001b[27u')); // Press kitty escape key
await waitFor(() => {
expect(mockCommitTrustLevelChange).not.toHaveBeenCalled();