MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / sectionFor

Function sectionFor

e2e/scenarios/policies-ui.test.ts:143–144  ·  view source on GitHub ↗
(connection: string)

Source from the content-addressed store, hash-verified

141 // The Accounts tab also lists connection names; scope all tree
142 // lookups to the active tab panel so locators stay strict.
143 const sectionFor = (connection: string) =>
144 page.getByRole("tabpanel").locator("section").filter({ hasText: connection });
145 // Group rows are the only tree buttons carrying aria-expanded.
146 const closedGroup = (connection: string, text: string) =>
147 sectionFor(connection).locator('button[aria-expanded="false"]').filter({ hasText: text });

Callers 4

closedGroupFunction · 0.85
policyMenuForFunction · 0.85
leafIndicatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected