#/mobile/cards shows the game without the site shell: a title, a footer with the account and a discreet "Version complète" link, and a tab bar fixed at the bottom. Phones opening #/cards are sent to the same section in mobile mode unless the player chose the full version. Account, History and Administration point to the computer. The panels are the computer ones, adapted under .nebula-mobile (and body.nebula-mobile-body for dialogs) for a 393×852 reference phone: small cards with names under them when opening packs, a revealed card shown large on tap, tap-to-pick team recruitment with a single Recruit button and large stars, row lists for explorers and commons in the expedition pickers, a race track and circuit that read at phone size, and full-width actions throughout. Firefox no longer shows a mirrored back on a flipped card. Phone Playwright journeys check that every section fits the screen with no button wrapping, then open a pack, run an expedition and recruit a team by touch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| helpers | ||
| AGENTS.md | ||
| aniimo-elements.test.mjs | ||
| aniimo.test.mjs | ||
| auto-backup.test.mjs | ||
| data-validation.test.mjs | ||
| deferred-module-data.test.mjs | ||
| deployment-workflow.test.mjs | ||
| file-headers.test.mjs | ||
| finish-availability.test.mjs | ||
| function-docs.test.mjs | ||
| guide-checklist.test.mjs | ||
| holo-flares.test.mjs | ||
| library-copy.test.mjs | ||
| nebula-cards-api.test.mjs | ||
| nebula-cards-daily.test.mjs | ||
| nebula-cards-expedition-balance.test.mjs | ||
| nebula-cards-expedition-service.test.mjs | ||
| nebula-cards-expeditions.test.mjs | ||
| nebula-cards-mirror.test.mjs | ||
| nebula-cards-mobile.test.mjs | ||
| nebula-cards-team.test.mjs | ||
| nebula-cards.test.mjs | ||
| persistence-queue.test.mjs | ||
| project-env.test.mjs | ||
| quota-refresh.test.mjs | ||
| react-lint.test.mjs | ||
| README.md | ||
| server-cache.test.mjs | ||
| server-robustness.test.mjs | ||
| static-app.test.mjs | ||
| static-games.test.mjs | ||
| static-styles.test.mjs | ||
| static-toolboxes.test.mjs | ||
| table-evaluation.test.mjs | ||
| task-planner-quantities.test.mjs | ||
| toolbox-alert-visibility.test.mjs | ||
| toolbox-compactors.test.mjs | ||
| toolbox-image-actions.test.mjs | ||
| toolbox-import-validation.test.mjs | ||
| toolbox-modules.test.mjs | ||
| toolbox-share-crypto.test.mjs | ||
| toolbox-share-quota.test.mjs | ||
| toolbox-shares-api.test.mjs | ||
| toolbox-shares-store.test.mjs | ||
| toolbox-targets.test.mjs | ||
Tests Node
Tests lancés avec le lanceur intégré de Node (node --test), sans navigateur.
Les parcours dans un vrai navigateur sont dans e2e/. Le
choix entre les deux est expliqué dans docs/TEST_STRATEGY.md.
npm test # tous les tests Node
node --test tests/nebula-cards.test.mjs # un seul fichier
node --test --test-name-pattern="site content" tests/data-validation.test.mjs
npm run test:cards # seulement le TCG
Ce que couvrent les fichiers
| Fichiers | Sujet |
|---|---|
data-validation.test.mjs + helpers/data-validation.mjs |
Contenu éditable : site.json, données de jeux, Librairie. Toute nouvelle clé de texte se déclare ici. |
nebula-cards*.test.mjs |
Sokko TCG : règles pures, service avec une base SQLite en mémoire, API HTTP, Carte du jour, Expéditions et leur équilibrage, Équipe du jour, Miroir brisé, adresses et redirection du mode mobile (nebula-cards-mobile.test.mjs) |
server-*.test.mjs, static-app.test.mjs, deployment-workflow.test.mjs, project-env.test.mjs |
Serveur Node (cache, robustesse), application construite, livraison, lecture du .env |
toolbox-modules.test.mjs, static-toolboxes.test.mjs, persistence-queue.test.mjs, deferred-module-data.test.mjs, quota-refresh.test.mjs, auto-backup.test.mjs, library-copy.test.mjs |
Toolboxes : normalisation des outils, file d'écriture, médias différés, sauvegarde, copie depuis la Librairie |
file-headers.test.mjs, function-docs.test.mjs, static-styles.test.mjs, react-lint.test.mjs, toolbox-compactors.test.mjs |
Règles d'architecture vérifiées sur les sources : en-têtes /** @file … */ du JS (rubriques des fichiers centraux et des gros fichiers), JSDoc des fonctions exportées (cliquet sur fixtures/undocumented-exports.json) et // Rôle : des feuilles Sass, blocs SassDoc /// des mixins et fonctions, compacteur de chaque outil, taille des feuilles Sass, chargement des styles du TCG, règles React |
aniimo*.test.mjs, static-games.test.mjs, guide-checklist.test.mjs |
Guides de jeux |
holo-flares.test.mjs, finish-availability.test.mjs |
Effets visuels des cartes |
Les tests « statiques » lisent les fichiers sources pour protéger une règle d'architecture. Ils ne remplacent pas un parcours navigateur quand le risque porte sur une interaction ou un rendu.
Écrire un test
- Commencer le fichier par un en-tête
/** @file … */(gabarit dans website/AGENTS.md). - Un test du TCG crée sa propre base en mémoire et passe
nowetrandomau service pour rester reproductible. - Un nouveau fichier de test du TCG s'ajoute aux listes
lint:cardsettest:cardsdepackage.json.