Skip to content

Commit bd8454d

Browse files
committed
Another poll case
1 parent a437d12 commit bd8454d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/playwright/Terminal.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ test.describe('API Integration Tests', () => {
389389
const y = termRect.top + dims.css.cell.height * 0.5;
390390
await ctx.page.mouse.click(x, y);
391391

392-
strictEqual(callCount, 2);
392+
await pollFor(ctx.page, () => callCount, 2);
393393
});
394394

395395
test('should not fire on mousedown when no prior selection', async () => {
@@ -401,6 +401,7 @@ test.describe('API Integration Tests', () => {
401401
const x = termRect.left + dims.css.cell.width * 5;
402402
const y = termRect.top + dims.css.cell.height * 0.5;
403403
await ctx.page.mouse.click(x, y);
404+
await timeout(20);
404405

405406
strictEqual(callCount, 0);
406407
});

0 commit comments

Comments
 (0)