diff --git a/Makefile b/Makefile index 5aeafe9..565e45d 100644 --- a/Makefile +++ b/Makefile @@ -50,6 +50,7 @@ demo-load: cp -r /var/www/html/user/docs/demo/trips/italy-2026-demo/04.stories/. /var/www/html/user/pages/01.trips/italy-2026-demo/04.stories/ 2>/dev/null || true && \ cp -r /var/www/html/user/docs/demo/trips/italy-2026-demo/dailies/. /var/www/html/user/pages/01.trips/italy-2026-demo/01.dailies/ && \ cp /var/www/html/user/docs/demo/trips/italy-2026-demo/*.gpx /var/www/html/user/pages/01.trips/italy-2026-demo/ 2>/dev/null || true && \ + chown -R 1000:1000 /var/www/html/user/pages/01.trips/italy-2026-demo && \ cd /var/www/html && php bin/grav clearcache" demo-reset: diff --git a/tests/ui/maps.spec.js b/tests/ui/maps.spec.js index 1179e26..16bcc61 100644 --- a/tests/ui/maps.spec.js +++ b/tests/ui/maps.spec.js @@ -94,8 +94,8 @@ test('M7: clicking map marker briefly highlights the corresponding entry card', !window.tripMap.isRotating(); }, { timeout: 15000 }); - // Click the first marker - await page.locator('.maplibregl-marker').first().click(); + // Click the first marker (force bypasses overlap when start/end share the same location) + await page.locator('.maplibregl-marker').first().click({ force: true }); // Within 500ms of click + delay, one journal-post should have is-highlighted await expect(page.locator('.journal-post.is-highlighted')).toBeVisible({ timeout: 1500 });