MCPcopy Create free account
hub / github.com/tinyplex/tinybase / performDocShotClicks

Function performDocShotClicks

test/e2e/doc-shots.test.ts:73–84  ·  view source on GitHub ↗
(
  page: Page,
  shot: {clicks?: string[]; framed: boolean},
)

Source from the content-addressed store, hash-verified

71};
72
73const performDocShotClicks = async (
74 page: Page,
75 shot: {clicks?: string[]; framed: boolean},
76): Promise<void> => {
77 for (const selector of shot.clicks ?? []) {
78 const locator = shot.framed
79 ? page.frameLocator('iframe').first().locator(selector).first()
80 : page.locator(selector).first();
81 await locator.waitFor();
82 await locator.click();
83 }
84};
85
86const waitForDocShotReady = async (
87 page: Page,

Callers 1

expectDocShotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…