From 99a3f702267196608e8c023025402f5a18523f89 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 10 Sep 2026 17:15:53 +0200 Subject: [PATCH] =?UTF-8?q?feat(e2e):=20agregar=20convenciones=20y=20prueb?= =?UTF-8?q?as=20E2E=20para=20el=20m=C3=B3dulo=20de=20identidad?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 + apps/server/.env.e2e.example | 3 + apps/web/src/layout/app-topbar.tsx | 3 +- .../Frontend-ERP-Convencion-tests-E2E.md | 451 ++++++++++++++++++ .../identity/src/web/login/ui/login-card.tsx | 16 +- package.json | 6 +- .../rdx-ui/src/components/form/text-field.tsx | 3 +- tests/e2e/identity/login.spec.ts | 40 ++ tests/e2e/identity/logout.spec.ts | 21 + tests/e2e/identity/protected-routes.spec.ts | 12 + tests/e2e/identity/support/login-via-ui.ts | 19 + tests/e2e/support/ensure-e2e-database.mjs | 35 +- 12 files changed, 595 insertions(+), 16 deletions(-) create mode 100644 docs/frontend/Frontend-ERP-Convencion-tests-E2E.md create mode 100644 tests/e2e/identity/login.spec.ts create mode 100644 tests/e2e/identity/logout.spec.ts create mode 100644 tests/e2e/identity/protected-routes.spec.ts create mode 100644 tests/e2e/identity/support/login-via-ui.ts diff --git a/.gitignore b/.gitignore index c2bc4412..3512253d 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,5 @@ test-results/ blob-report/ apps/server/.env.e2e apps/web/.env.e2e + +apps/server/storage/e2e/ diff --git a/apps/server/.env.e2e.example b/apps/server/.env.e2e.example index 5616358b..0f5447ed 100644 --- a/apps/server/.env.e2e.example +++ b/apps/server/.env.e2e.example @@ -27,3 +27,6 @@ SIGNING_SERVICE_METHOD=POST SIGNING_SERVICE_TIMEOUT_MS=5000 SIGNING_SERVICE_MAX_RETRIES=0 COMPANY_CERTIFICATES_PATH=./storage/e2e/certificates + +E2E_USER_EMAIL=replace-with-e2e-user-email +E2E_USER_PASSWORD=replace-with-e2e-user-password diff --git a/apps/web/src/layout/app-topbar.tsx b/apps/web/src/layout/app-topbar.tsx index 41a7aa4f..41f72ce8 100644 --- a/apps/web/src/layout/app-topbar.tsx +++ b/apps/web/src/layout/app-topbar.tsx @@ -136,6 +136,7 @@ export const AppTopbar = () => {