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

Function selectEntry

graph-ui/tools/handtest-fixes-architecture.mjs:206–213  ·  view source on GitHub ↗
(page, pattern)

Source from the content-addressed store, hash-verified

204 folders: geometry.labels.filter((item) => item.kind === 'folder' || item.kind === 'lane').length, overlaps: geometry.overlaps.length, overlapping: geometry.overlaps.slice(0, 6) });
205
206async function selectEntry(page, pattern) {
207 const select = page.getByLabel('Behavior entry point').first();
208 const options = await select.locator('option').allTextContents();
209 const index = options.findIndex((option) => pattern.test(option));
210 if (index < 0) return null;
211 await select.selectOption({ index });
212 return options[index];
213}
214async function behaviorState(page) {
215 return page.evaluate(() => {
216 const select = document.querySelector('select[aria-label="Behavior entry point"]');

Callers 1

k21Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected