import { defineConfig, devices } from "@playwright/test"; // 真实浏览器旅程:对真后端与隔离库执行中文输入与实际点击。 // 用例随 P2 起逐包登记在 web/tests/旅程/;此前本配置只登记环境合同。 export default defineConfig({ testDir: "./tests/旅程", timeout: 60_000, retries: 0, use: { baseURL: process.env.MUSE_WORKBENCH_URL || "http://127.0.0.1:5173", locale: "zh-CN", trace: "retain-on-failure", launchOptions: {executablePath: process.env.MUSE_BROWSER_EXECUTABLE}, }, projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }], });