Poll to avoid a race

This commit is contained in:
Daniel Imms
2026-01-08 17:25:26 -08:00
parent 55d12e03d1
commit a437d12004
+2 -2
View File
@@ -418,13 +418,13 @@ test.describe('API Integration Tests', () => {
await ctx.page.mouse.move(startX, y);
await ctx.page.mouse.down();
strictEqual(callCount, 2);
await pollFor(ctx.page, () => callCount, 2);
await ctx.page.mouse.move(endX, y);
strictEqual(callCount, 2);
await ctx.page.mouse.up();
strictEqual(callCount, 3);
await pollFor(ctx.page, () => callCount, 3);
});
});