pulse-dashboard
Version:
A Next.js Dashboard application for real-time monitoring and historical analysis of Playwright test executions, based on playwright-pulse-report. This component provides the UI for visualizing Playwright test results and can be run as a standalone CLI too
12 lines • 552 B
TypeScript
import { DetailedTestResult } from "@/types/playwright";
/**
* Determines the effective status of a test based on strict precedence rules.
*
* Rules:
* 1. If test.outcome === 'flaky', return 'flaky'.
* 2. If test.status === 'flaky', return 'flaky'.
* 3. Fallback: If test.status === 'passed' and has retries, return 'flaky'.
* 4. Otherwise return test.status.
*/
export declare function getEffectiveTestStatus(test: DetailedTestResult): 'passed' | 'failed' | 'skipped' | 'flaky' | 'timedOut' | 'pending';
//# sourceMappingURL=testUtils.d.ts.map