mirror of
https://github.com/aaddrick/claude-desktop-debian.git
synced 2026-05-17 00:26:21 +03:00
Build out a Playwright-based regression-detection harness covering the compat-matrix surfaces (KDE-W, KDE-X, GNOME, Sway, i3, Niri, packaging formats). Adds: - Planning + decision docs under docs/testing/ — README, matrix, runbook, automation, cases/ (11 case files), quick-entry-closeout - Playwright scaffolding (config, tsconfig) - 78 spec runners under tools/test-harness/src/runners/ — T## case- doc runners and S## distribution/smoke runners - Substrate primitives in tools/test-harness/src/lib/: AX-tree loader (snapshotAx + waitForAxNode + axTreeToSnapshot), focus- shifter, eipc-registry, niri-native bridge, drag-drop bridge, electron-mocks, claudeai page-objects, inspector client S03 (DEB Depends declared) and S04 (RPM Requires declared) ship marked test.fail() — they're regression detectors for the case-doc gap (deb.sh emits no Depends:, rpm.sh sets AutoReqProv: no), and the expected-failure shape lets them report green on every host until upstream packaging starts declaring runtime deps. 127 files, no runtime changes; harness is opt-in via 'cd tools/test-harness && npx playwright test'. Co-authored-by: Claude <claude@anthropic.com>
26 lines
654 B
TypeScript
26 lines
654 B
TypeScript
/// <reference types="node" />
|
|
import { defineConfig } from '@playwright/test';
|
|
|
|
const resultsDir = process.env.RESULTS_DIR ?? './results/local';
|
|
|
|
export default defineConfig({
|
|
testDir: './src/runners',
|
|
testMatch: /.*\.spec\.ts$/,
|
|
fullyParallel: false,
|
|
workers: 1,
|
|
retries: process.env.CI ? 1 : 0,
|
|
forbidOnly: !!process.env.CI,
|
|
timeout: 60_000,
|
|
expect: { timeout: 10_000 },
|
|
outputDir: `${resultsDir}/test-output`,
|
|
reporter: [
|
|
['list'],
|
|
['junit', { outputFile: `${resultsDir}/junit.xml` }],
|
|
['html', { outputFolder: `${resultsDir}/html`, open: 'never' }],
|
|
],
|
|
use: {
|
|
trace: 'retain-on-failure',
|
|
screenshot: 'only-on-failure',
|
|
},
|
|
});
|