For running containers, we have the following options:
- Use Docker Desktop to run the containers locally
- Use Testcontainers Desktop App to run containers locally (embedded runtime) or in the Testcontainers cloud (300min for free)
- Use GitHub Actions to run a Testcontainer
This project contains a GitHub Action which runs the Tests (of course in a Testcontainer) when pushing/merging to main.
It is recommended to use Docker image version that matches Playwright version. If the Playwright version in your Docker image does not match the version in your project/tests, Playwright will be unable to locate browser executables.
- Playwright module for Testcontainers
- Playwright Docker
- Playwright Docker Image Tags
- Playwright official docker Images
- Docker image to run Playwright with Node.js
- The project is based on this guide