Skip to content

Commit 5aa7e97

Browse files
committed
test(app-shell): the package-door draft-base pin counts the verdict re-read after the save
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbYiz7aUf8wSAnnRyMx
1 parent 06b408a commit 5aa7e97

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎ui/packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.packageDoorDraftBase-26837.test.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@ describe('PermissionMatrixEditPage — the PACKAGE door saves onto the pending d
170170
// Out-of-scope rows come from the draft too: it is what this save replaces.
171171
expect(body.objects.b_order).toEqual(DRAFT.objects.b_order);
172172
expect(body.fields).toEqual(DRAFT.fields);
173-
// CONTROL: the save-time draft read ran (#1 is the load).
174-
expect(server.getDraftCalls).toBe(2);
173+
// CONTROL: the save-time draft read ran (#1 is the load). objectstack#26858 —
174+
// #3 is the read after the save that refreshes the draft's served verdict.
175+
await waitFor(() => expect(server.getDraftCalls).toBe(3));
175176
expect(server.savedOpts[0]).toMatchObject({ mode: 'draft', packageId: 'app.a' });
176177
expect(screen.queryByText(REFUSAL)).toBeNull();
177178
});

0 commit comments

Comments
 (0)