mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
chore: more tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user