Skip to content

linkInteractionsToScreenshot

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/utils/ui-interaction-detector.ts

Link UI interactions to screenshots

Takes a screenshot URL and a list of interactions, and determines which interactions are available on that screenshot based on the current state detected from the URL.

Signature

ts
function linkInteractionsToScreenshot(_screenshotUrl: string, interactions: UIInteraction[], currentState: string): UIInteraction[]

Parameters

NameType
_screenshotUrlstring
interactionsUIInteraction[]
currentStatestring

Returns: UIInteraction[]

Was this page helpful?

Download as PDF