Test by typing:
pnpm exec playwright testCheck out the following files:
./tests/example.spec.ts- Example end-to-end test./tests-examples/demo-todo-app.spec.ts- Demo Todo App end-to-end tests./playwright.config.ts- Playwright Test configuration
Visit https://playwright.dev/docs/intro for more information. ✨
Other important commands:
pnpm exec playwright test
# Runs the end-to-end tests.
pnpm exec playwright test --ui
# Starts the interactive UI mode.
pnpm exec playwright test --project=chromium
# Runs the tests only on Desktop Chrome.
pnpm exec playwright test example
# Runs the tests in a specific file.
pnpm exec playwright test --debug
# Runs the tests in debug mode.
pnpm exec playwright codegen
# Auto generate tests with Codegen.Happy hacking! 🎭
Install python dependencies in requirements.txt.
pip install -r requirements.txtCreate a copy of .env.example file with real server values. (The example is configured for keycloak based site testing)
To debug, you can use VS code debug task or run once using,
python -m tests.perf.locustfile --hostYou can launch locust using
locust -f tests/perf/locustfile.py