- Node installed
- A prepared directory
/app
in the container with playwright installation - A directory
/app/workdir
(must be subdir of above) which is mounted to the host to serve- configs, like
playwright.config.js
- the actual test specifications in subfolder
tests
- as output directory for all artifacts
- configs, like
docker build . --file Dockerfile -t lct-playwright-image:local
# Run on Top Level directory of repo
rm -rf ./test/local/results.xml ./test/local/example.png ./test/local/output
docker run -u pwuser --rm --ipc=host -v ./test/local:/app/workdir lct-playwright-image:local "--project=chromium"
# Verify if files exist
ls -la ./test/local