fix: update tests for demo reorganisation (italy-2026-demo, central-asia ordering, japan real entry)

- dailies T2: switch ordering test to central-asia-2023 (pixelfed-1 oldest, pixelfed-22 newest)
- dailies T3-T6: update KNOWN_SLUG/TITLE/CITY/COUNTRY to the real japan entry (2026-06-17)
- stories S1-S7: update all italy-2025 URLs to italy-2026-demo
- stories S5/S6: fix URL regex and use val-dorcia-dawn for hero sanity check
- maps M5/M6: point Italy GPX map tests to italy-2026-demo (has markers + GPX)
- global-setup: run make demo-load before tests so italy-2026-demo always exists
- post P2: add retries:1 + test.setTimeout(60s) for intermittent FilePond upload
- user: story template hero fallback for media.types config override (see user commit)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr
This commit is contained in:
2026-06-20 16:31:37 +02:00
parent 9cb1b3cb3a
commit 0729e4ea1d
6 changed files with 28 additions and 24 deletions
+4
View File
@@ -1,5 +1,6 @@
const fs = require('fs');
const path = require('path');
const { execSync } = require('child_process');
module.exports = async function globalSetup() {
const envFile = path.join(__dirname, '../.env');
@@ -11,4 +12,7 @@ module.exports = async function globalSetup() {
}
});
}
// Ensure demo content is loaded (italy-2026-demo trip + stories + GPX files)
execSync('make demo-load', { cwd: path.join(__dirname, '..'), stdio: 'inherit' });
};