Commit graph

5 commits

Author SHA1 Message Date
senke
0ac5bfa2dc [FIX] E2E: Corriger tests Register et Login
- Test 1.2: Utiliser .first() pour input[type='password'] (évite strict mode violation)
- Test 1.4: Ajouter logique de fallback si utilisateur n'existe pas encore
- Test 1.4: Attendre que le formulaire soit prêt avant de soumettre
- Test 1.4: Gérer les cas où l'utilisateur doit être créé d'abord
2026-01-04 01:44:15 +01:00
senke
68839020ba [FIX] E2E: Séparer tests authentifiés/non authentifiés dans mvp-integration
- Créer groupe 'Unauthenticated tests' avec storageState vide
- Créer groupe 'Authenticated tests' pour tests nécessitant auth
- Corriger indentation des tests 1.1 à 1.5
- Test 1.6 utilise maintenant l'état authentifié du global-setup
- Corrige erreurs où LoginPage redirigeait car déjà authentifié
2026-01-04 01:44:15 +01:00
senke
19d0252308 [DOC] MVP Final Status - Tests E2E partiellement fonctionnels
- Global setup fonctionne  (authentification API réussie)
- Utilisateur de test créé et fonctionnel 
- Problème routage frontend identifié (page /login ne se charge pas)
- Recommandation: Tests manuels pour MVP ou corriger routage
- Backend 100% fonctionnel 
2026-01-04 01:44:15 +01:00
senke
d0f403018d [FIX] ISSUE-001 & ISSUE-002: Fix authentication workflow for MVP
ISSUE-001: Auto-verify email on registration
- Set IsVerified: true in Register() to allow immediate login
- Removes blocking email verification requirement for MVP

ISSUE-002: Generate tokens in Register
- Modified Register() signature to return (*User, *TokenPair, error)
- Added JWT token generation after user creation
- Store refresh token in database
- Updated handlers to use returned tokens
- Added nil checks for JWTService and refreshTokenService

Changes:
- veza-backend-api/internal/core/auth/service.go
- veza-backend-api/internal/handlers/auth.go
- veza-backend-api/internal/core/auth/handler.go
- REAL_ISSUES_TODOLIST.json

Note: Backend needs to be recompiled and restarted for changes to take effect.
2026-01-04 01:44:13 +01:00
senke
9e942bc48b batch 1 2025-12-22 22:00:50 +01:00