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

Function k22

graph-ui/tools/handtest-fixes-architecture.mjs:542–562  ·  view source on GitHub ↗
(page)

Source from the content-addressed store, hash-verified

540/* K22: Service map ohne Deployment-Dateien */
541
542async function k22(page) {
543 await open(page, PROJECT);
544 await series(page, 'K22', 'routes', () => tab(page, 'routes').click(), 'Routes, Service map fuer django-demo');
545 // Die Service map laedt nach; erst ihr eigener Text sagt, ob die Suche nach Compose-Dateien fertig ist.
546 await page.waitForFunction(() => {
547 const map = document.querySelector('.container-map');
548 return Boolean(map) && !/Finding indexed Compose definitions/.test(map.textContent ?? '');
549 }, null, { timeout: 60000 }).catch(() => {});
550 await wait(1000);
551 const text = await page.locator('.container-map').first().innerText().catch(() => '');
552 await shot(page, 'K22', 'service-map-meldung', 'Meldung der Service map');
553 const endpoints = page.getByRole('button', { name: /Show endpoints/ }).first();
554 let switched = false;
555 if (await endpoints.count()) {
556 await endpoints.click(); await wait(2500);
557 switched = await page.getByRole('button', { name: 'Endpoints', exact: true }).first().getAttribute('aria-pressed') === 'true';
558 await shot(page, 'K22', 'endpoints-nach-knopf', 'Nach dem Knopf: Endpoints');
559 }
560 check('K22', 'Service map ohne Deployment-Dateien sagt das klar und fuehrt zu Endpoints, kein Lesefehler',
561 /No Docker Compose deployment files/i.test(text) && !/Could not read/i.test(text) && switched, { message: text.split('\n').find((line) => /deployment|Compose|Could not/i.test(line)) ?? text.slice(0, 160), switched });
562}
563
564/* ------------------------------------------------------------------ */
565/* K23: unterscheidbare Routen-Schilder */

Callers

nothing calls this directly

Calls 7

seriesFunction · 0.85
countMethod · 0.80
openFunction · 0.70
tabFunction · 0.70
waitFunction · 0.70
shotFunction · 0.70
checkFunction · 0.70

Tested by

no test coverage detected