Working version of playwright
This commit is contained in:
28
Makefile
28
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user