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

Function policyMenuFor

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

Source from the content-addressed store, hash-verified

147 const closedGroup = (connection: string, text: string) =>
148 sectionFor(connection).locator('button[aria-expanded="false"]').filter({ hasText: text });
149 const policyMenuFor = (connection: string, node: string) =>
150 sectionFor(connection).getByRole("button", {
151 name: `Set policy for ${node}`,
152 exact: true,
153 });
154 // A leaf's policy dot, scoped to ITS row — the same effective policy
155 // (and thus the same indicator label) can legitimately sit on several
156 // 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