MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / waitForLabels

Function waitForLabels

graph-ui/tools/smoke-w12.mjs:4954–4964  ·  view source on GitHub ↗
(expected)

Source from the content-addressed store, hash-verified

4952 );
4953 };
4954 const waitForLabels = async (expected) => {
4955 await page.waitForFunction(
4956 (wanted) => {
4957 const boxes = globalThis.__atlasGalaxy?.labelBoxes;
4958 const count = Array.isArray(boxes) ? boxes.length : Number(boxes ?? 0);
4959 return wanted === 'positive' ? count > 0 : count === wanted;
4960 },
4961 expected,
4962 { timeout: 5000 },
4963 );
4964 };
4965 let establishedBefore;
4966 if (filter.name === 'Effektschalter labels') {
4967 await waitForLabels('positive');

Callers 1

measureFilterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected