test: add M7 test for map marker flash highlight on card + integrate user submodule update

This commit is contained in:
2026-06-20 12:47:56 +02:00
parent 208cd224ad
commit e7b60c0c4c
2 changed files with 15 additions and 1 deletions
+14
View File
@@ -78,3 +78,17 @@ test('M6: Italy map has a journey MapLibre source after GPX settles', async ({ p
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