Files
PBandDev c950a3a274 ci: cache e2e setup and reuse dist (#7)
* chore: align local CI workflow

* ci: cache e2e setup and reuse dist
2026-03-24 12:40:28 -05:00

29 lines
738 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
import { e2eConfig } from "./e2e.config.ts";
export default defineConfig({
testDir: "./tests/e2e",
snapshotPathTemplate: "{testDir}/{testFilePath}-snapshots/{arg}-{platform}{ext}",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: 8,
reporter: [
["line"],
["html", { open: "never" }],
],
use: {
baseURL: e2eConfig.comfyUrl,
trace: "on-first-retry",
viewport: { width: 1600, height: 1000 },
},
globalSetup: "./tests/e2e/global-setup.ts",
globalTeardown: "./tests/e2e/global-teardown.ts",
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
});