playwright tests.
This commit is contained in:
35
playwright.config.py
Normal file
35
playwright.config.py
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user