sokko-g/e2e
Shinuwa ced3bc818d
Some checks failed
Validate and deploy Sokko G / validate (push) Failing after 19m52s
Validate and deploy Sokko G / deploy (push) Has been skipped
Add an expedition set workshop to build sets without equipping
- "Créer un set" opens a workshop from the explorer frame, or from the
  tab bar while preparation is hidden, even during an expedition: pick
  an explorer, draft its equipment, see the stats against its current
  gear and the tag synergies with cross-highlight, then save the set.
- The server accepts a set's equipment as a validated draft
  (SET_EQUIPMENT_INVALID for closed slots, unowned or duplicate commons).
- Tag search from the workshop opens the commons picker with that tag
  chosen; empty pickers and the empty sets window get a centered
  empty state with a clear or create action.
- Card tags read as a calm list and synergy shows inside the stats box;
  CardPicker moves to its own file.
- Tests, e2e paths and design docs cover the workshop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 15:40:19 +01:00
..
fixtures Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
helpers Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
production Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
AGENTS.md Let players use Sokko TCG from a phone through a mobile fallback mode 2026-12-03 23:55:35 +01:00
aniimo-elements.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
aniimo.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
app-data.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
basic-tools.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
calculator.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
calendar-layout.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
card-surfaces.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
deferred-media.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
editor-lifecycle.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
form-reorder.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
game-filters.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
goal-selection.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
grouped-reorder.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
guide-checklist.spec.js Let a guide checklist update from its page filters without losing checks, and optionally limit the page to what the checklist contains 2026-12-01 17:39:00 +01:00
home.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
import-validation.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
inline-edit.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
library.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
memos-ticker.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
modal-accessibility.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
module-order.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
nds-controls.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
nds-patterns.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
nebula-cards-mobile.spec.js Let players switch collection views from clear tiles, filter explorer and equipment pickers with a tag and name autocomplete and multi-stat builds, read card stats as gauges with art badges for affinity, tags and worn commons, see short power effects, and save expedition sets that move shared commons between explorers 2026-12-05 12:05:04 +01:00
nebula-cards.spec.js Add an expedition set workshop to build sets without equipping 2026-12-05 15:40:19 +01:00
notepad-sync.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
onboarding.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
persistence.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
README.md Let players use Sokko TCG from a phone through a mobile fallback mode 2026-12-03 23:55:35 +01:00
session-state.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
shell-behavior.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
storage-startup.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
style-layouts.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
table.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
task-planner.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
text-exchange.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
tool-style-states.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
toolbox-cover.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
toolbox-drawer-layout.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
toolbox-list.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
toolbox-share.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
toolbox-spaces.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
toolbox-tutorial.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00
toolbox.spec.js Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +01:00

Parcours navigateur (Playwright)

Tests qui pilotent un vrai Chromium sur l'application. Les tests sans navigateur sont dans tests/ ; le choix entre les deux est expliqué dans docs/TEST_STRATEGY.md.

Les trois suites

Suite Commande Configuration Serveur utilisé
Développement (presque tout) npm run test:e2e playwright.config.js Vite (npm run dev), réutilisé s'il tourne déjà
Production (e2e/production/) npm run test:e2e:production playwright.production.config.js server.mjs sur le build, port 4173
Sokko TCG (nebula-cards.spec.js) npm run test:e2e:cards playwright.cards.config.js Build + scripts/start-cards-e2e-server.mjs, port 4180
Sokko TCG, mode mobile (nebula-cards-mobile.spec.js) npm run test:e2e:cards (projet phone-cards, après le précédent) playwright.cards.config.js Même serveur ; téléphone simulé (écran 393 × 852 et toucher d'un iPhone 14 Pro, sous Chromium)

Lancer un seul fichier : npx playwright test e2e/toolbox.spec.js. Les traces des échecs sont dans test-results/ et le rapport dans playwright-report/ (npx playwright show-report).

Organisation

Chemin Contenu
*.spec.js Un fichier par zone ou outil (toolbox-*.spec.js, calendar-layout.spec.js, aniimo.spec.js…)
helpers/ Gestes pointeur fiables (pointer.js), accès au stockage, construction d'imports de toolbox
fixtures/ Petites pages « sondes » qui montent un hook ou un composant seul, et données d'import
production/ Comportements propres au build servi par Node (CSP, prise en main, TCG désactivé…)

Règles

  • Attendre un état visible ou stocké avec les assertions Playwright, jamais un délai fixe.
  • Pour glisser-déposer, utiliser helpers/pointer.js (il attend le chargement différé et recalcule la position juste avant de cliquer).
  • Cibler les rôles et noms accessibles. Après un changement de libellé dans site.json, chercher les parcours qui l'utilisent.
  • Chaque scénario part d'un navigateur isolé, sans données personnelles.
  • Valider à partir de 768 px de large, sauf le mode mobile de Sokko TCG, validé dans un téléphone simulé (393 × 852, tactile).
  • Sokko TCG : les parcours partagent un serveur et sa base. Ceux qui décalent son horloge (sokkog-cards-e2e-clock.json, Expéditions et Équipe du jour) la remettent à zéro à la fin ; celui de l'Équipe du jour avance de cinq jours et doit rester le dernier du fichier. Le projet phone-cards (nebula-cards-mobile.spec.js) passe ensuite sur la même base, avec le joueur de développement : il ouvre un paquet, avance l'horloge d'un jour pour récupérer l'expédition que les parcours ordinateur ont laissée en route, puis part et revient ; il remet l'horloge à zéro à la fin.