Skip to content

Commit 9c391ce

Browse files
thymikeeclaude
andcommitted
test(android): pin that the hidden IME wait polls past a still-drawn window
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent d6f6dc3 commit 9c391ce

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎test/integration/android-emulator-e2e/live-ime-window.test.ts‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,20 @@ test('a hidden wait passes once the InputMethod window record is gone from a win
104104
expect(result.status).toBe('fulfilled');
105105
});
106106

107+
test('a hidden wait keeps polling while the InputMethod window is still drawn', async () => {
108+
const reads = [
109+
() => Promise.resolve(`${IME_DRAWN}\n${APP_WINDOW}`),
110+
() => Promise.resolve(`${IME_DRAWN}\n${APP_WINDOW}`),
111+
() => Promise.resolve(APP_WINDOW),
112+
];
113+
const result = await settle(
114+
waitForImeWindow(DEVICE, false, 'still drawn', () => reads.shift()!()),
115+
);
116+
117+
expect(result.status).toBe('fulfilled');
118+
expect(reads).toHaveLength(0);
119+
});
120+
107121
test('a hidden wait never satisfied by unreadable dumps fails with a dump excerpt', async () => {
108122
const result = await settle(
109123
waitForImeWindow(DEVICE, false, 'still drawn', () =>

0 commit comments

Comments
 (0)