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

Function openTarget

graph-ui/tools/smoke-w4c.mjs:144–164  ·  view source on GitHub ↗

Zum Symbol navigieren, ueber dieselbe Suche, die die Kommandozeile fuehrt.

(page, origin)

Source from the content-addressed store, hash-verified

142
143/** Zum Symbol navigieren, ueber dieselbe Suche, die die Kommandozeile fuehrt. */
144async function openTarget(page, origin) {
145 await page.goto(`${origin}/?project=${PROJECT}`, { waitUntil: 'load' });
146 await page.waitForSelector('[data-testid="atlas-statusbar"]', { timeout: 30000 });
147 const input = page.locator('[data-testid="atlas-command-input"]');
148 await input.click();
149 await input.fill('');
150 await input.pressSequentially(TARGET, { delay: 40 });
151 await page.waitForSelector(`[data-testid="atlas-search-row"][data-name="${TARGET}"]`, { timeout: 30000 });
152 await page.waitForTimeout(600);
153 await page.click(`[data-testid="atlas-search-row"][data-name="${TARGET}"]`);
154 await page.waitForFunction(
155 (expected) => globalThis.__atlasReader?.document?.path === expected,
156 TARGET_FILE,
157 { timeout: 40000 },
158 );
159 await page.waitForFunction(
160 () => /userService\.createUser$/.test(globalThis.__atlasTwin?.qualifiedName ?? ''),
161 undefined,
162 { timeout: 40000 },
163 );
164}
165
166/** Warten, bis das Bild wirklich gefuellt ist. Ein leeres Bild ist keine Antwort. */
167async function waitForFlow(page) {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected