refactor: simplify workbench layout and browser tests
This commit is contained in:
@@ -2,12 +2,16 @@ import { defineConfig, devices } from "@playwright/test";
|
||||
|
||||
const testPort = process.env.PLAYWRIGHT_PORT || "5191";
|
||||
const baseURL = process.env.PLAYWRIGHT_BASE_URL || `http://127.0.0.1:${testPort}`;
|
||||
const runningInCi = Boolean(process.env.CI);
|
||||
|
||||
export default defineConfig({
|
||||
testDir: ".",
|
||||
testMatch: ["src/**/*.e2e.ts", "tests/browser/**/*.e2e.ts"],
|
||||
fullyParallel: true,
|
||||
reporter: "html",
|
||||
forbidOnly: runningInCi,
|
||||
retries: runningInCi ? 1 : 0,
|
||||
workers: runningInCi ? 2 : undefined,
|
||||
reporter: runningInCi ? [["line"], ["html", { open: "never" }]] : "html",
|
||||
use: {
|
||||
baseURL,
|
||||
locale: "zh-CN",
|
||||
|
||||
Reference in New Issue
Block a user