playwright tests.

This commit is contained in:
Bryce
2025-08-07 07:28:41 -07:00
parent 35f51c5818
commit 0e9ec9693b
3 changed files with 153 additions and 1 deletions

35
playwright.config.py Normal file
View File

@@ -0,0 +1,35 @@
import os
from playwright.sync_api import sync_playwright
config = {
"use": [
{
"browserName": "chromium",
"headless": True,
"slowMo": 0,
}
],
"projects": [
{
"name": "chromium",
"use": {
"browserName": "chromium",
"headless": os.getenv("PLAYWRIGHT_HEADLESS", "false").lower() == "true",
"slowMo": 0,
},
}
],
"webServer": {
"command": "python manage.py runserver --host=0.0.0.0 --port=5002",
"url": "http://localhost:5002",
"reuseExistingServer": True,
"timeout": 120,
"stdout": "pipe",
"stderr": "pipe",
},
"testDir": "./tests",
"fullyParallel": False,
"retries": 0,
"reporter": "list",
"timeout": 30000,
}