Download tasks/hipcamp/solution/site/implementation/clone/playwright.config.ts from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 974 Bytes
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/hipcamp/solution/site/implementation/clone/playwright.config.ts
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/hipcamp/solution/site/implementation/clone/playwright.config.ts
-
curl -L -o playwright.config.ts https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/hipcamp/solution/site/implementation/clone/playwright.config.ts
974 Bytes
| import { defineConfig, devices } from "@playwright/test"; | |
| const port = Number(process.env.E2E_PORT || 3110); | |
| const host = "localhost"; | |
| const baseURL = `http://${host}:${port}`; | |
| export default defineConfig({ | |
| testDir: "./tests/e2e", | |
| timeout: 45_000, | |
| expect: { timeout: 10_000 }, | |
| fullyParallel: false, | |
| workers: 1, | |
| use: { | |
| baseURL, | |
| trace: "retain-on-failure", | |
| }, | |
| webServer: { | |
| command: [ | |
| "PERSISTENT_STORE_PATH=.tmp/e2e-store.json", | |
| "SESSION_SECRET=test-only-hipcamp-e2e-session-secret-32-bytes", | |
| "SESSION_COOKIE_SECURE=false", | |
| `npm run dev -- --host ${host} --port ${port}`, | |
| ].join(" "), | |
| url: baseURL, | |
| reuseExistingServer: false, | |
| timeout: 120_000, | |
| }, | |
| projects: [ | |
| { | |
| name: "desktop", | |
| use: { ...devices["Desktop Chrome"], viewport: { width: 1280, height: 900 } }, | |
| }, | |
| { | |
| name: "mobile", | |
| use: { ...devices["Pixel 5"], viewport: { width: 390, height: 844 } }, | |
| }, | |
| ], | |
| }); | |