CTRF / findTest
findTest(
report,criteria):undefined|Test
Defined in: filter.ts:57
The CTRF report to search
Filter criteria including id, name, status, tags, etc.
undefined | Test
The first matching test, or undefined if not found
// Find by ID
const test = findTest(report, { id: 'uuid' });
// Find by name
const test = findTest(report, { name: 'should login' });
// Find by multiple criteria
const test = findTest(report, { status: 'failed', flaky: true });