From bd8454db551630b3affa0592d1c100f34df2a1d4 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Thu, 8 Jan 2026 17:37:44 -0800 Subject: [PATCH] Another poll case --- test/playwright/Terminal.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/playwright/Terminal.test.ts b/test/playwright/Terminal.test.ts index 5e7da129..6dee11da 100644 --- a/test/playwright/Terminal.test.ts +++ b/test/playwright/Terminal.test.ts @@ -389,7 +389,7 @@ test.describe('API Integration Tests', () => { const y = termRect.top + dims.css.cell.height * 0.5; await ctx.page.mouse.click(x, y); - strictEqual(callCount, 2); + await pollFor(ctx.page, () => callCount, 2); }); test('should not fire on mousedown when no prior selection', async () => { @@ -401,6 +401,7 @@ test.describe('API Integration Tests', () => { const x = termRect.left + dims.css.cell.width * 5; const y = termRect.top + dims.css.cell.height * 0.5; await ctx.page.mouse.click(x, y); + await timeout(20); strictEqual(callCount, 0); });