test: switch all test fixtures from japan-korea-2026 to italy-2026-demo
- Replace all japan-korea-2026 URL references in test files - dailies.spec.js: update KNOWN_SLUG/TITLE/CITY/COUNTRY to first campiglia entry - accessibility.spec.js: update AX4 entry URL to campiglia entry - helpers.js: update TRACKER_DIR to italy-2026-demo dailies Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr
This commit is contained in:
@@ -23,7 +23,7 @@ test('A2: contrast tokens meet WCAG AA 4.5:1 floor', async ({ page }) => {
|
||||
});
|
||||
|
||||
// ── A3: Filter button aria-pressed + toggle aria-expanded ──────────────────────
|
||||
const TRIP_URL = '/trips/japan-korea-2026';
|
||||
const TRIP_URL = '/trips/italy-2026-demo';
|
||||
|
||||
test('A3a: All-content filter has aria-pressed="true" on load', async ({ page }) => {
|
||||
await page.goto(TRIP_URL);
|
||||
@@ -71,7 +71,7 @@ test('A3f: clicking Cycling toggle sets aria-expanded="true" then back to false'
|
||||
|
||||
// ── A4: Photo strip keyboard navigation ───────────────────────────────────────
|
||||
test('A4a: all photo strips have role=region and aria-label', async ({ page }) => {
|
||||
await page.goto('/trips/japan-korea-2026/dailies');
|
||||
await page.goto('/trips/italy-2026-demo/dailies');
|
||||
const strips = page.locator('.journal-photo-strip');
|
||||
const count = await strips.count();
|
||||
if (count === 0) return;
|
||||
@@ -82,7 +82,7 @@ test('A4a: all photo strips have role=region and aria-label', async ({ page }) =
|
||||
});
|
||||
|
||||
test('A4b: multi-slide photo strips have accessible prev/next controls', async ({ page }) => {
|
||||
await page.goto('/trips/japan-korea-2026/dailies');
|
||||
await page.goto('/trips/italy-2026-demo/dailies');
|
||||
const multiCount = await page.locator('.journal-photo-strip').evaluateAll(
|
||||
els => els.filter(el => parseInt(el.dataset.slides, 10) >= 2).length
|
||||
);
|
||||
@@ -134,7 +134,7 @@ function axeScan(id, url) {
|
||||
}
|
||||
|
||||
axeScan('AX1', '/');
|
||||
axeScan('AX2', '/trips/japan-korea-2026');
|
||||
axeScan('AX3', '/trips/japan-korea-2026/dailies');
|
||||
axeScan('AX4', '/trips/japan-korea-2026/dailies/2026-06-17.entry');
|
||||
axeScan('AX2', '/trips/italy-2026-demo');
|
||||
axeScan('AX3', '/trips/italy-2026-demo/dailies');
|
||||
axeScan('AX4', '/trips/italy-2026-demo/dailies/2026-09-01-0700-setting-off-from-campiglia.entry');
|
||||
axeScan('AX5', '/trips');
|
||||
|
||||
Reference in New Issue
Block a user