SPB Git

Repository Public MIT

playwright.config.ts 762 B 20 lines typescript

1import { defineConfig, devices } from "@playwright/test";23/**4 * E2E runs against an already running instance (E2E_BASE_URL, default the local production build on5 * :8570) backed by a NON-production database. tests/e2e/global-setup.ts creates a throwaway publisher.6 */7export default defineConfig({8  testDir: "tests/e2e",9  timeout: 45_000,10  fullyParallel: false,11  workers: 1,12  reporter: [["list"]],13  globalSetup: "./tests/e2e/global-setup.ts",14  use: { baseURL: process.env.E2E_BASE_URL ?? "http://localhost:8570", trace: "retain-on-failure" },15  projects: [16    { name: "desktop", use: { ...devices["Desktop Chrome"], viewport: { width: 1440, height: 900 } } },17    { name: "mobile", use: { ...devices["Pixel 7"] }, grep: /@mobile|@public/ },18  ],19});20
Files main
Menu

Theme