mirror of
https://github.com/zuiidea/antd-admin
synced 2026-09-27 12:44:04 +00:00
- Drop orders routes, API, MSW, and e2e; users-only CRUD template - Port HTTP refresh, hooks, RouteError, and core e2e to basic - Lingui extract --clean in script; refresh catalogs - Update add-resource docs, cursor rule, and optimization spec Made-with: Cursor
30 lines
604 B
TypeScript
30 lines
604 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
declare const process: { env: { CI?: string } };
|
|
|
|
const ci = Boolean(process.env.CI);
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
fullyParallel: true,
|
|
forbidOnly: ci,
|
|
retries: ci ? 2 : 0,
|
|
workers: ci ? 1 : undefined,
|
|
reporter: "html",
|
|
use: {
|
|
baseURL: "http://localhost:5173",
|
|
trace: "on-first-retry",
|
|
},
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { ...devices["Desktop Chrome"] },
|
|
},
|
|
],
|
|
webServer: {
|
|
command: "vp dev",
|
|
url: "http://localhost:5173",
|
|
reuseExistingServer: !ci,
|
|
},
|
|
});
|