MCPcopy Index your code
hub / github.com/tinyplex/tinybase / applyDocShotStyle

Function applyDocShotStyle

test/e2e/doc-shots.test.ts:58–71  ·  view source on GitHub ↗
(
  page: Page,
  shot: {framed: boolean; style?: string},
)

Source from the content-addressed store, hash-verified

56};
57
58const applyDocShotStyle = async (
59 page: Page,
60 shot: {framed: boolean; style?: string},
61): Promise<void> => {
62 if (shot.style == null) {
63 return;
64 }
65 if (shot.framed) {
66 const frame = await getFirstFrame(page);
67 await frame?.addStyleTag({content: shot.style});
68 } else {
69 await page.addStyleTag({content: shot.style});
70 }
71};
72
73const performDocShotClicks = async (
74 page: Page,

Callers 1

expectDocShotFunction · 0.85

Calls 1

getFirstFrameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…