mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Poll to avoid a race
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user