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

Function openApp

graph-ui/tools/smoke-w4d.mjs:386–398  ·  view source on GitHub ↗

Die Seite laden und warten, bis Baum und Coverage-Join beide da sind.

(page, origin)

Source from the content-addressed store, hash-verified

384
385/** Die Seite laden und warten, bis Baum und Coverage-Join beide da sind. */
386async function openApp(page, origin) {
387 await page.goto(`${origin}/?project=${PROJECT}`, { waitUntil: 'load' });
388 await page.waitForSelector('[data-testid="atlas-statusbar"]', { timeout: 30000 });
389 await page.waitForSelector('[data-testid="atlas-tree-row"]', { timeout: 30000 });
390 await page.waitForFunction(
391 () => (globalThis.__atlasCoverage?.records?.length ?? -1) >= 0
392 && !/joining the coverage lists/.test(
393 document.querySelector('.atlas-tree-note')?.textContent ?? 'joining the coverage lists',
394 ),
395 undefined,
396 { timeout: 40000 },
397 );
398}
399
400/** Eine Datei im Baum anklicken und warten, bis der Reader eine Lage hat. */
401async function openInTree(page, path) {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected