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

Function layerText

graph-ui/tools/handtest-fixes-galaxy.mjs:145–146  ·  view source on GitHub ↗
(page)

Source from the content-addressed store, hash-verified

143const scopeName = (page) => page.locator('.atlas-graph-scope-name').first().innerText({ timeout: 1000 }).catch(() => '');
144const countText = (page) => page.locator('.atlas-graph-scope-count').first().innerText({ timeout: 1000 }).catch(() => '');
145const layerText = (page) => toolbar(page).evaluate((bar) => [...bar.querySelectorAll('span')].map((el) => el.textContent?.trim() ?? '')
146 .find((text) => /^\d+ layers?$/.test(text)) ?? '').catch(() => '');
147
148async function open(page) {
149 await page.goto(`${ORIGIN}/?project=${encodeURIComponent(PROJECT)}&workspace=galaxy`, { waitUntil: 'domcontentloaded' });

Callers 3

checkK9Function · 0.85
stateFunction · 0.85
checkK8Function · 0.85

Calls 1

toolbarFunction · 0.85

Tested by

no test coverage detected