test: add full application BDD suite

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Daniel Noulet 2026-09-20 09:13:48 +02:00
parent bed3f9a019
commit 79e09f049f
14 changed files with 1408 additions and 4 deletions

View file

@ -59,6 +59,20 @@ Run one frontend test:
cd frontend && npm test -- src/app/App.test.tsx -t "filters jobs by title"
```
Run the browser-level BDD user stories against an isolated production image:
```bash
make test-bdd
```
The human-readable scenarios live in
`bdd/features/recruitment-workspace.feature`. Add, remove, or edit scenarios in
that single file; reusable Playwright-backed steps live under `bdd/steps`.
Every run creates a fresh PostgreSQL database, loads deterministic test fixtures,
starts the complete production container with RabbitMQ, and writes an HTML report
to `bdd/reports/cucumber.html`. Use `make test-bdd-down` to remove a manually
started BDD stack.
Docker must be available for `make test`. The integration suite starts PostgreSQL
18 and RabbitMQ 4 in disposable Testcontainers, applies every Goose migration,
loads deterministic test fixtures, exercises login and the complete assessment and