MCPcopy
hub / github.com/tinyplex/tinybase / waitForDocShotReady

Function waitForDocShotReady

test/e2e/doc-shots.test.ts:86–103  ·  view source on GitHub ↗
(
  page: Page,
  shot: {
    readySelector?: string;
    readyText?: string | RegExp;
    readyTimeout?: number;
  },
)

Source from the content-addressed store, hash-verified

84};
85
86const waitForDocShotReady = async (
87 page: Page,
88 shot: {
89 readySelector?: string;
90 readyText?: string | RegExp;
91 readyTimeout?: number;
92 },
93): Promise<void> => {
94 if (shot.readySelector == null) {
95 return;
96 }
97 await expectedFramedElement(
98 page,
99 shot.readySelector,
100 shot.readyText,
101 shot.readyTimeout,
102 );
103};
104
105const stabilizeDocShot = async (
106 page: Page,

Callers 1

expectDocShotFunction · 0.85

Calls 1

expectedFramedElementFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…