import { defineConfig } from "@playwright/test"; export default defineConfig({ forbidOnly: true, fullyParallel: false, outputDir: process.env.DADA_PLAYWRIGHT_OUTPUT_DIR ?? "test-results/wp4-07", projects: [ { name: "chrome", use: { channel: "chrome" } }, { name: "edge", use: { channel: "msedge" } }, ], reporter: "line", retries: 0, testDir: "./tests/e2e", testMatch: "wp4-07-visual-performance.spec.ts", timeout: 360_000, use: { deviceScaleFactor: 1, headless: true, launchOptions: { args: ["--enable-precise-memory-info", "--force-device-scale-factor=1"] }, locale: "zh-CN", timezoneId: "Asia/Shanghai", trace: "off", viewport: { height: 1080, width: 1920 }, }, workers: 1, });