Skip to content

enrichScreenshotMetadata

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/utils/screenshot-metadata-enricher.ts

Enrich screenshot metadata with state machine context

Takes a screenshot URL and parsed entities, finds the matching component, and adds state machine and UI interaction information.

Signature

ts
function enrichScreenshotMetadata(screenshotUrl: string, route: string, entities: Entity[], options: {
    title?: string;
    viewport?: { width: number; height: number };
    capturedAt?: Date;
    isModal?: boolean;
    parentUrl?: string;
  }): EnhancedScreenshotMetadata

Parameters

NameType
screenshotUrlstring
routestring
entitiesEntity[]
options`{
title?: string;
viewport?: { width: number; height: number };
capturedAt?: Date;
isModal?: boolean;
parentUrl?: string;

}` |

Returns: EnhancedScreenshotMetadata

Was this page helpful?

Download as PDF