mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
test(qa): align AI oracles with fixtures and honor QA_OUT_DIR (#686)
The ocr oracle demanded six pangram words when ocr-clean.png prints five; the ocr-pdf oracle expected a searchable PDF when the tool's contract is text extraction; media-30s.mp4 was eight seconds long. Fix all three, regenerate tool-contract.json from current schemas, record the new fixture in the manifest, and add a QA_OUT_DIR override so parallel machines stop clobbering each other's lane output. Fixes #677.
This commit is contained in:
@@ -31,12 +31,15 @@ const BASE = process.env.QA_BASE_URL ?? "http://localhost:13492";
|
||||
const USERNAME = process.env.QA_USERNAME ?? "admin";
|
||||
const PASSWORD = process.env.QA_PASSWORD ?? "";
|
||||
const PROJECT = process.env.QA_COMPOSE_PROJECT ?? "snapotter-qa-f4c2bde9";
|
||||
const OUT_DIR_OVERRIDE = process.env.QA_OUT_DIR;
|
||||
/* biome-ignore-end lint/suspicious/noUndeclaredEnvVars: QA harness runs outside Turbo. */
|
||||
|
||||
const APP = `${PROJECT}-app`;
|
||||
const PG = `${PROJECT}-postgres`;
|
||||
const REPO = join(import.meta.dirname, "..", "..");
|
||||
const OUT_DIR = join(REPO, "docs", "qa", "master-20260724", "evidence", "processing-ai", "final");
|
||||
const OUT_DIR =
|
||||
OUT_DIR_OVERRIDE ??
|
||||
join(REPO, "docs", "qa", "master-20260724", "evidence", "processing-ai", "final");
|
||||
|
||||
const PNG = resolveFixture(".png", "image") as string;
|
||||
const JPG = resolveFixture(".jpg", "image") as string;
|
||||
|
||||
Reference in New Issue
Block a user