Ctrl K
ComunidadGuías…

frontend/playwright.config.ts

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
import { defineConfig, devices } from "@playwright/test"

// UI end-to-end tests. Run ONLY against a test stack (they create users & files):
//   E2E_BASE_URL=https://localhost:8443 E2E_ADMIN_PASSWORD=... npx playwright test
export default defineConfig({
  testDir: "./e2e",
  timeout: 90_000,
  expect: { timeout: 15_000 },
  fullyParallel: false,
  workers: 2,
  reporter: [["list"], ["html", { open: "never", outputFolder: "../.devdata/playwright-report" }]],
  outputDir: "../.devdata/playwright-results",
  use: {
    baseURL: process.env.E2E_BASE_URL ?? "https://localhost:8443",
    ignoreHTTPSErrors: true,
    locale: "zh-TW",
    timezoneId: "Asia/Taipei",
    trace: "retain-on-failure",
    screenshot: "only-on-failure",
  },
  projects: [
    { name: "desktop-chromium", use: { ...devices["Desktop Chrome"], viewport: { width: 1440, height: 900 } } },
    { name: "desktop-firefox", use: { ...devices["Desktop Firefox"], viewport: { width: 1280, height: 800 } } },
    { name: "mobile-chromium", use: { ...devices["Pixel 7"] } },
    { name: "tablet-chromium", use: { ...devices["Galaxy Tab S4"] } },
    { name: "mobile-webkit", use: { ...devices["iPhone 14"] } },
    { name: "tablet-webkit", use: { ...devices["iPad (gen 7)"] } },
  ],
})