Skip to content

Commit afe8f6f

Browse files
committed
wip(app-shell): pick the CEL textareas, not the operation picker, in the RLS pins
Claude-Session: https://claude.ai/code/session_01JQwxbYiz7aUf8wSAnnRyMx Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2df2f42 commit afe8f6f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎ui/packages/app-shell/src/views/metadata-admin/serverVerdictAtPath-26858.test.tsx‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,13 @@ async function renderRls(served: ServerDiagnostics | undefined, policies = 1) {
7373
await user.click(screen.getByText('perm.rls.title'));
7474
}
7575

76-
/** The editor wrapping each clause, in render order: policy 0 USING, policy 0 CHECK, policy 1 USING, … */
76+
/** The editor wrapping each clause, in render order: policy 0 USING, policy 0 CHECK, policy 1 USING, …
77+
* (the CEL textareas only — the operation picker is a combobox too). */
7778
const clauseBoxes = () =>
78-
screen.getAllByRole('combobox').map((ta) => ta.closest('div')!.parentElement as HTMLElement);
79+
screen
80+
.getAllByRole('combobox')
81+
.filter((el) => el.tagName === 'TEXTAREA')
82+
.map((ta) => ta.closest('div')!.parentElement as HTMLElement);
7983

8084
describe('the RLS clause editor reads the served verdict at its path (objectstack#26858)', () => {
8185
it('a USING clause the server refuses shows the server message and no "Valid CEL"; its CHECK still reads valid', async () => {

0 commit comments

Comments
 (0)