Working version of playwright

This commit is contained in:
2025-08-30 18:51:42 +02:00
parent 3bd503d4d2
commit db56363b1f
10 changed files with 286 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
.PHONY: test
.PHONY: test install-playwright install-playwright-deps test-e2e test-e2e-headed test-regression
test:
pytest
@@ -7,6 +8,31 @@ coverage:
coverage run --source=src -m pytest
coverage html
install-playwright:
@echo "Installing Playwright and pytest-playwright via pip..."
pip install playwright pytest-playwright
@echo "Installing Playwright browsers..."
playwright install
@echo "Installing system dependencies for Ubuntu/WSL2..."
playwright install-deps
@echo "Playwright installation complete!"
install-playwright-deps:
@echo "Installing system dependencies for Playwright on Ubuntu/WSL2..."
playwright install-deps
test-e2e:
pytest tests/test_e2e_regression.py -m "e2e" --browser chromium
test-e2e-headed:
pytest -m "e2e" --browser chromium --headed
test-regression:
pytest tests/test_e2e_regression.py -m "regression" --browser chromium
test-all-browsers:
pytest tests/test_e2e_regression.py -m "e2e" --browser chromium --browser firefox --browser webkit
clean:
rm -rf build
rm -rf htmlcov