Skip to content

waygraph / stubFilePath

Function: stubFilePath() ​

stubFilePath(kind): string

Defined in: src/live/auto-session/helpers.ts:301

Public so a Block a consumer writes can reach the same real fixture files rawUpload uses - not just the raw primitive. Needed when a real upload flow has no stable <input type="file"> to hand a selector to at all (e.g. one created on the fly inside a click handler, then immediately .click()'d to open the OS picker and possibly torn down right after) - a Block's own act() should pair this with page.waitForEvent("filechooser") around the triggering click, not go hunting for a selector that may not exist for more than a moment.

Parameters ​

kind ​

StubFileKind

Returns ​

string

waygraph 0.18.3 (alpha) · Node 24+ · peer @playwright/test ^1.40.0 · syntax may change before 1.0: see what was removed