chore: more tests

This commit is contained in:
Nathnael
2026-07-21 12:49:36 +00:00
parent b8b8c4adf7
commit 20a6ef7906
11 changed files with 609 additions and 22 deletions

View File

@@ -9,8 +9,8 @@ both headless-in-Docker and interactively from the host against the same URLs.
| Service | Host port | Notes |
| ----------------------- | --------- | ---------------------------------------------- |
| `freight-api-e2e` | 3101 | migrations + seeders run at boot |
| `freight-portal-e2e` | 5273 | nginx static build, API baked to `:3101` |
| `freight-backoffice-e2e`| 5283 | nginx static build, API baked to `:3101` |
| `freight-portal-e2e` | 5373 | nginx static build, API baked to `:3101` |
| `freight-backoffice-e2e`| 5383 | nginx static build, API baked to `:3101` |
| `postgres-freight-e2e` | 5533 | `edr_freight_e2e`, tmpfs — gone on `down` |
| `minio-e2e` | 9310/9311 | object storage for file features |
| `cypress` | (host net)| profile `cypress`, headless chrome |
@@ -58,7 +58,7 @@ Full map in `cypress/fixtures/users.json`.
`cy.loginBackoffice(email?)` / `cy.loginPortal(email?)``cy.session`-cached
(across specs), `POST /api/auth/login`, sets the `auth-token` /
`refresh-token` cookies the apps read.
- **Origins**: `baseUrl` is the backoffice (5283). Portal specs `cy.visit`
- **Origins**: `baseUrl` is the backoffice (5383). Portal specs `cy.visit`
the absolute portal URL; a test that touches *both* apps wraps portal steps
in `cy.origin()` (different port = different origin). Cookies ignore ports —
always call the matching login command right before switching apps so