sokko-g/e2e
Shinuwa 0807c18371 Lay the card sheet stats out two by two when the summary is narrow, not when the window is
At 768 px the sheet switches to two columns and the summary shrinks to 336 px,
so four stat tiles overflowed. A container query on the summary now decides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:12:16 +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 Stabilize Playwright pointer interactions after lazy loading 2026-10-30 14:14:23 +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 Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks 2026-12-01 09:42:13 +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.spec.js Lay the card sheet stats out two by two when the summary is narrow, not when the window is 2026-12-01 15:12:16 +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 Cover the daily team end to end and measure keep or recruit on the race 2026-12-01 14:20:05 +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

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.
  • 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.