fix(e2e): lift zoom floor for antimeridian hover test (EDDF→NFTF spans ~176°)
CI / build + unit + e2e (pull_request) Successful in 14m39s

This commit is contained in:
2026-09-23 15:31:20 +00:00
parent 199704f761
commit 70a726d546
+4
View File
@@ -380,6 +380,10 @@ test('hovering an antimeridian-crossing package draws one continuous trace, no c
await expect(row, 'the hook-created package appears in the list').toBeVisible({ timeout: 15_000 }); await expect(row, 'the hook-created package appears in the list').toBeVisible({ timeout: 15_000 });
// fitToAirports unwraps crossing pairs (ISS-120) so both endpoints are in-viewport. // fitToAirports unwraps crossing pairs (ISS-120) so both endpoints are in-viewport.
// EDDF→NFTF spans ~176° of longitude — it can't fit at MIN_ZOOM=3 (components/Map.tsx), so the camera
// clamps to z=3 and both endpoints are off-viewport → queryRenderedFeatures never sees the trace.
// Lift the floor for this test's camera; quantization stays ≤~0.02° even near z=0, below EPS (:214–228).
await page.evaluate(() => (window as any).__flightMap?.setMinZoom(0));
await fitToAirports(page, [HUB, 'NFTF']); await fitToAirports(page, [HUB, 'NFTF']);
await row.hover(); await row.hover();