This directory contains end-to-end tests for the project. The suite can run against either the Spring Boot wrapper with embedded Tomcat or the Docker image that deploys the regular WAR files to Tomcat.
The tests are written using Microsoft Playwright and interact with the server and workbench in a real browser.
Requirements:
- java
- maven
- npm
- npx
- docker (for
docker-tomcat)
The tests can be run using the run.sh script. The script builds the selected runtime, waits until the HTTP endpoints are reachable, and then executes the Playwright test suite.
Run against the Spring Boot implementation:
./run.sh spring-bootRun against the Docker/Tomcat image:
./run.sh docker-tomcatThe default runtime is spring-boot, so ./run.sh keeps the original local behavior.
If Playwright browsers are already installed locally, set E2E_SKIP_PLAYWRIGHT_INSTALL=true to skip the browser installer.
To run the tests interactively use npx playwright test --ui