test: add M7 test for map marker flash highlight on card + integrate user submodule update
This commit is contained in:
@@ -78,3 +78,17 @@ test('M6: Italy map has a journey MapLibre source after GPX settles', async ({ p
|
|||||||
|
|
||||||
expect(hasSource).toBe(true);
|
expect(hasSource).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// ── M7: Clicking a trip-page map marker adds is-highlighted to the entry card ──
|
||||||
|
test('M7: clicking map marker briefly highlights the corresponding entry card', async ({ page }) => {
|
||||||
|
await page.goto('/trips/japan-korea-2026');
|
||||||
|
// Wait for map canvas and at least one marker
|
||||||
|
await expect(page.locator('#trip-map canvas.maplibregl-canvas')).toBeVisible({ timeout: 10000 });
|
||||||
|
await expect(page.locator('.maplibregl-marker').first()).toBeVisible({ timeout: 15000 });
|
||||||
|
|
||||||
|
// Click the first marker
|
||||||
|
await page.locator('.maplibregl-marker').first().click();
|
||||||
|
|
||||||
|
// Within 500ms of click + delay, one entry-card should have is-highlighted
|
||||||
|
await expect(page.locator('.entry-card.is-highlighted')).toBeVisible({ timeout: 1500 });
|
||||||
|
});
|
||||||
|
|||||||
+1
-1
Submodule user updated: 9365f46440...a398bcb737
Reference in New Issue
Block a user