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, }