world.go:473 — widened the movement-staleness cutoff from 250ms → 800ms. This is just a safety net for a truly dead connection (explicit disconnect/blur/tab-hide handlers already zero movement immediately), so loosening it doesn't weaken anything real — it just tolerates a slow frame instead of stranding a walk-to-target action.
tests/game.spec.ts:85 — bumped the boss-attack poll timeout 15s → 20s as extra headroom on slow CI hardware.
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@ test('boss event is visible and accepts server-authoritative combat', async ({ p
|
||||
await page.getByRole('button', { name: 'Close display settings' }).click();
|
||||
const hp = await page.evaluate(() => (window as any).__aeternalis.snapshot.world.bossHp);
|
||||
await page.getByRole('button', { name: 'Target Harbinger', exact: true }).click();
|
||||
await expect.poll(() => page.evaluate(() => (window as any).__aeternalis.snapshot.world.bossHp), { timeout: 15000 }).toBeLessThan(hp);
|
||||
await expect.poll(() => page.evaluate(() => (window as any).__aeternalis.snapshot.world.bossHp), { timeout: 20000 }).toBeLessThan(hp);
|
||||
await expect(page.locator('#boss-bar')).toBeVisible();
|
||||
await page.screenshot({ path: 'test-results/boss.png' });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user