End-to-End Testing for TYPO3 CMS with Playwright. This demo shows how to test a frontend user login, see test/login.spec.ts.
git clone https://github.com/fgeierst/typo3-playwright-demo.git
cd typo3-playwright-demo
ddev start
ddev composer install
ddev snapshot restore --latest
Login via typo3-playwright-demo.ddev.site/ using these credentials:
- Username:
admin
- Password:
password
Due to an incompatibility with Alpine Linux, we run Playwright outside the DDEV container. This requires Node to be installed on your machine.
Editor extensions for Visual Studio Code or IntelliJ are recommended.
Install headless browsers
npx playwright install
Run test suite
npm run test