Download frontend/playwright.config.ts from modventures/character-studio: direct link, hf CLI and curl.
- Browser
- Download file 680 Bytes
-
https://huggingface.co/spaces/modventures/character-studio/resolve/main/frontend/playwright.config.ts
- Command line
-
hf download hf://spaces/modventures/character-studio/frontend/playwright.config.ts
-
curl -L -o playwright.config.ts https://huggingface.co/spaces/modventures/character-studio/resolve/main/frontend/playwright.config.ts
680 Bytes
| import { defineConfig, devices } from '@playwright/test'; | |
| const remote = process.env.E2E_BASE_URL; | |
| export default defineConfig({ | |
| testDir: './e2e', | |
| fullyParallel: false, | |
| workers: 1, | |
| timeout: 60000, | |
| reporter: [['list'], ['html', { open: 'never' }]], | |
| use: { | |
| baseURL: remote || 'http://127.0.0.1:8000', | |
| trace: 'retain-on-failure', | |
| screenshot: 'only-on-failure', | |
| }, | |
| projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }], | |
| webServer: remote | |
| ? undefined | |
| : { | |
| command: 'python ../scripts/run_e2e_server.py', | |
| url: 'http://127.0.0.1:8000/health', | |
| reuseExistingServer: false, | |
| timeout: 30000, | |
| }, | |
| }); | |