Files
meshcore-hub/e2e/playwright.config.ts
Louis King 9f9cd67440 ci: add consolidated job summary with test results and artifacts
Add a summary job that runs after all CI jobs (even on failure),
parses the pytest/vitest/Playwright JUnit reports plus coverage.xml,
and renders a consolidated Markdown summary to $GITHUB_STEP_SUMMARY:
job results, test counts, durations, backend coverage, failure
details, and the artifact inventory. Enable a Playwright JUnit
reporter and include it in the playwright-report artifact.
2026-08-30 11:46:12 +01:00

32 lines
808 B
TypeScript

import { defineConfig } from "@playwright/test";
const baseURL = process.env.E2E_BASE_URL ?? "http://localhost:18080";
export default defineConfig({
testDir: "./tests",
outputDir: "./test-results",
globalSetup: "./global-setup.ts",
// Single throwaway backend: run serially so mutating specs (routes, profile)
// cannot race each other.
fullyParallel: false,
workers: 1,
retries: 0,
reporter: [
["list"],
["html", { open: "never", outputFolder: "./playwright-report" }],
["junit", { outputFile: "./junit.xml" }],
],
use: {
baseURL,
headless: true,
viewport: { width: 1280, height: 800 },
actionTimeout: 15_000,
navigationTimeout: 30_000,
trace: "retain-on-failure",
screenshot: "only-on-failure",
},
expect: {
timeout: 15_000,
},
});