fix: make demo-load writable, fix photo strip a11y, fix M7 marker click
- Makefile: add chown 1000:1000 after demo-load so Grav can create entries - Makefile: add collection config to demo dailies.md (page.collection() needs it) - base.html.twig: add tabindex="0" to journal-photo-strip for keyboard access (AX1-AX3) - maps.spec.js: use force:true on M7 marker click (start/end overlap at Campiglia) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr
This commit is contained in:
@@ -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/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 -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 && \
|
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"
|
cd /var/www/html && php bin/grav clearcache"
|
||||||
|
|
||||||
demo-reset:
|
demo-reset:
|
||||||
|
|||||||
@@ -94,8 +94,8 @@ test('M7: clicking map marker briefly highlights the corresponding entry card',
|
|||||||
!window.tripMap.isRotating();
|
!window.tripMap.isRotating();
|
||||||
}, { timeout: 15000 });
|
}, { timeout: 15000 });
|
||||||
|
|
||||||
// Click the first marker
|
// Click the first marker (force bypasses overlap when start/end share the same location)
|
||||||
await page.locator('.maplibregl-marker').first().click();
|
await page.locator('.maplibregl-marker').first().click({ force: true });
|
||||||
|
|
||||||
// Within 500ms of click + delay, one journal-post should have is-highlighted
|
// Within 500ms of click + delay, one journal-post should have is-highlighted
|
||||||
await expect(page.locator('.journal-post.is-highlighted')).toBeVisible({ timeout: 1500 });
|
await expect(page.locator('.journal-post.is-highlighted')).toBeVisible({ timeout: 1500 });
|
||||||
|
|||||||
Reference in New Issue
Block a user