diff --git a/apps/app/src/app/(app)/[orgId]/policies/[policyId]/components/PolicyDeleteDialog.test.tsx b/apps/app/src/app/(app)/[orgId]/policies/[policyId]/components/PolicyDeleteDialog.test.tsx
index 5d303fd137..d28a0eaa02 100644
--- a/apps/app/src/app/(app)/[orgId]/policies/[policyId]/components/PolicyDeleteDialog.test.tsx
+++ b/apps/app/src/app/(app)/[orgId]/policies/[policyId]/components/PolicyDeleteDialog.test.tsx
@@ -95,6 +95,22 @@ describe('PolicyDeleteDialog', () => {
).toBeInTheDocument();
});
+ it('warns that the entire policy and all versions are deleted, not just the current version', () => {
+ render(
+ ,
+ );
+ expect(
+ screen.getByText(/all of its versions/i),
+ ).toBeInTheDocument();
+ expect(
+ screen.getByText(/not just the version you are currently viewing/i),
+ ).toBeInTheDocument();
+ });
+
it('renders Delete button enabled for admin', () => {
render(
Delete Policy
- Are you sure you want to delete this policy? This action cannot be undone.
+ Are you sure you want to delete this policy? This permanently deletes the
+ entire "{policy.name}" policy and all of its versions, not just the version
+ you are currently viewing. This action cannot be undone.