Saltar a contenido

Frontend Testing

Unit Tests (Jasmine + Karma)

  • data-testid format: pp-<component>-<element>[-variant]
  • Each new component: *.spec.ts with at least "should create" test
  • Priority: ApiService, AuthGuard, AuthInterceptor, Dashboard, Escandallos

E2E Tests (Playwright)

  • Located in e2e/ directory
  • Use pp- prefixed data-testid selectors
  • Scripts: npm run test, npm run test:headed, npm run test:ui