f7a720204a
- 移除 GovAI, nomifun-tauri, 算力盒子 的 submodule 引用 - 添加所有子项目的完整源代码 - 保留原始 .git 为 .git.bak 备份
36 lines
848 B
TypeScript
36 lines
848 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
const BASE_URL = process.env.E2E_BASE_URL || "http://localhost:3000";
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
outputDir: "./e2e/.artifacts",
|
|
fullyParallel: false,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: 0,
|
|
workers: 2,
|
|
reporter: [["list"], ["html", { outputFolder: "./e2e/.report", open: "never" }]],
|
|
timeout: 120_000,
|
|
expect: { timeout: 90_000 },
|
|
use: {
|
|
baseURL: BASE_URL,
|
|
trace: "retain-on-failure",
|
|
screenshot: "only-on-failure",
|
|
actionTimeout: 30_000,
|
|
locale: "zh-CN",
|
|
},
|
|
projects: [
|
|
{
|
|
name: "setup",
|
|
testMatch: /auth\.setup\.ts/,
|
|
},
|
|
{
|
|
name: "apps",
|
|
use: {
|
|
...devices["Desktop Chrome"],
|
|
storageState: "./e2e/.auth/state.json",
|
|
},
|
|
dependencies: ["setup"],
|
|
},
|
|
],
|
|
}); |