Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.02 KB

File metadata and controls

34 lines (22 loc) · 1.02 KB

End-to-end tests

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.

Running the tests

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-boot

Run against the Docker/Tomcat image:

./run.sh docker-tomcat

The 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