/** Name of the per-test HAR file written by `recordHar`. */ export declare const HAR_FILENAME = "test.har"; /** * Identifies a single test attempt. `testId` is Playwright's `TestInfo.testId`, * which is documented to equal `TestCase.id` in the reporter API — so the * `harRecording` fixture (which has `TestInfo`) and `LogsReporter` (which has * `TestCase`/`TestResult`) compute the exact same path for the same attempt. */ export interface HarRecordingPathInfo { testId: string; retry: number; } /** * Absolute path the per-test HAR is recorded to, deliberately **outside** the * Playwright `outputDir` (which is uploaded wholesale as CI artifacts). * * `recordHar` only flushes when the browser context closes, and on a hard test * timeout that close completes during Playwright's native context teardown — * after the `harRecording` fixture's own teardown has already run. Recording * here (a temp dir, never uploaded) means that late flush writes a raw, * unredacted HAR (it carries Authorization/Cookie) somewhere CI never stores. * `LogsReporter.onTestEnd` runs after all teardown, reads this path, and writes * only the **redacted** copy into the artifacts `hars/` folder. Keyed by * `testId` + `retry` so parallel workers and retries never collide. */ export declare const harRecordingPath: (info: HarRecordingPathInfo) => string;