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

Function policyMenuFor

e2e/scenarios/policies-ui.test.ts:148–152  ·  view source on GitHub ↗
(connection: string, node: string)

Source from the content-addressed store, hash-verified

146 const closedGroup = (connection: string, text: string) =>
147 sectionFor(connection).locator('button[aria-expanded="false"]').filter({ hasText: text });
148 const policyMenuFor = (connection: string, node: string) =>
149 sectionFor(connection).getByRole("button", {
150 name: `Set policy for ${node}`,
151 exact: true,
152 });
153 // A leaf's policy dot, scoped to ITS row — the same effective policy
154 // (and thus the same indicator label) can legitimately sit on several
155 // rows at once, so an unscoped label lookup would not be unique.

Callers 1

Calls 1

sectionForFunction · 0.85

Tested by

no test coverage detected