- test(e2e): add playwright harness and test stack - test(e2e): add core flow - fix(ui): preserve same-origin browser form submissions - fix(ui): offer reload inside stale edit dialogs - test(e2e): add persona session and accessibility suites - test(e2e): preserve per-run artifacts and clean pulled images - test(e2e): verify import and audit state across navigation - test(e2e): tighten verification helpers and persona checks - test(e2e): bound response body reads of the browser observer - test: recover review compatibility assertions - test: stabilize audit and user flow assertions
21 lines
631 B
TypeScript
21 lines
631 B
TypeScript
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
// Copyright (C) 2026 Bryan Joshua Pedini
|
|
|
|
export type HarnessErrorKind = 'timeout' | 'spawn' | 'prerequisite' | 'protocol' | 'transport' | 'leak' | 'infrastructure';
|
|
|
|
export class HarnessError extends Error {
|
|
readonly kind: HarnessErrorKind;
|
|
readonly details?: unknown;
|
|
|
|
constructor(kind: HarnessErrorKind, message: string, details?: unknown) {
|
|
super(`[harness:${kind}] ${message}`);
|
|
this.name = 'HarnessError';
|
|
this.kind = kind;
|
|
this.details = details;
|
|
}
|
|
}
|
|
|
|
export function isHarnessError(e: unknown): e is HarnessError {
|
|
return e instanceof HarnessError;
|
|
}
|