mirror of
https://github.com/suitenumerique/messages.git
synced 2026-09-12 12:57:44 +02:00
Currently to mark a thread as read/unread, the user have to open a dropdown menu then click on the action... as this action can be done often, we put it directly in the thread action bar.
Messages E2E Tests
End-to-end tests for the Messages application using Playwright.
Prerequisites
- Docker and Docker Compose installed
- Messages project configured
Running the tests
In headless mode (CI)
make test-e2e
In UI mode
make test-e2e-ui
Open the Playwright UI on http://localhost:8932 to write and debug the tests interactively.
In Dev mode
Start playwright in UI Mode and use the dev frontend service to avoid rebuilding the frontend after each change.
make test-e2e-dev
Open the Playwright UI on http://localhost:8932 to write and debug the tests interactively.
Explanation
Isolated services
E2E tests use dedicated services especially for the database and the object storage.
Caddy to serve the frontend and the backend
Caddy is used as a reverse proxy to serve the frontend and the backend on the same origin, avoiding cross-origin cookie issues.
Environment variables
E2E configuration files are located in env.d/development/*.e2e:
backend.e2e: Backend configuration for testsfrontend.e2e: Frontend configuration for testskeycloak.e2e: Keycloak configuration for tests