mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
* perf(ci): cut PR CI wall-clock time across server tests, Playwright shards, and workflow setup * fix(ci): guard empty apt cache copy, use 100% Vitest workers in CI, revert Playwright to 2 workers with built supervisor
31 lines
792 B
TypeScript
31 lines
792 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
const baseURL =
|
|
process.env.E2E_BASE_URL ?? `http://localhost:${process.env.E2E_METRO_PORT ?? "8081"}`;
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
testMatch: ["**/*.spec.ts"],
|
|
globalSetup: "../app/e2e/support/global-setup.ts",
|
|
timeout: 60_000,
|
|
expect: {
|
|
timeout: 10_000,
|
|
},
|
|
fullyParallel: false,
|
|
workers: Number(process.env.E2E_WORKERS ?? (process.env.CI ? "2" : "1")),
|
|
retries: process.env.CI ? 1 : 0,
|
|
reporter: [["list"]],
|
|
use: {
|
|
baseURL,
|
|
trace: "retain-on-failure",
|
|
screenshot: "only-on-failure",
|
|
video: process.env.E2E_RECORD_VIDEO === "1" ? "on" : "retain-on-failure",
|
|
},
|
|
projects: [
|
|
{
|
|
name: "desktop",
|
|
use: { ...devices["Desktop Chrome"] },
|
|
},
|
|
],
|
|
});
|