Skip to content

feat(admin-ui): add test files for all hooks across the system (#2895)#2911

Merged
duttarnab merged 3 commits into
mainfrom
admin-ui-issue-2895
Jun 29, 2026
Merged

feat(admin-ui): add test files for all hooks across the system (#2895)#2911
duttarnab merged 3 commits into
mainfrom
admin-ui-issue-2895

Conversation

@faisalsiddique4400

@faisalsiddique4400 faisalsiddique4400 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

feat(admin-ui): add test files for all hooks across the system (#2895)

Summary

This PR expands the Admin UI test suite by adding test files for hooks across the application that previously had no dedicated test coverage.

The goal is to improve confidence in shared business logic, reduce regression risk, and strengthen the overall Jest test suite by ensuring reusable hooks are independently validated.


Fix Summary

  • Added test files for hooks that previously had no test coverage
  • Increased unit test coverage across shared and feature-specific hooks
  • Added validation for hook initialization and default behavior
  • Added tests for success and error scenarios where applicable
  • Improved consistency of hook testing across Admin UI modules and plugins
  • Established a foundation for future hook enhancements and regression testing
  • Aligned hook tests with existing Jest testing patterns

Verification

npm run test:all
npm run check:all

passes successfully.

  • Verified all newly added hook test files execute successfully
  • Verified existing test suites remain unaffected
  • Verified hook behavior is validated across supported scenarios
  • Verified lint and type-check pass successfully
  • Verified no regressions introduced by the additional test coverage

🔗 Ticket

Closes: #2895

Summary by CodeRabbit

  • Tests
    • Added and expanded Jest + React Testing Library coverage for many admin UI hooks (profiles, dashboards, licenses, assets, health, mapping, webhooks, SAML, scripts, user claims, user management, and more).
    • Validated session/permission-aware query enabling, data shaping and formatting, aggregated/normalized outputs, mutation success/error flows, toast and navigation side effects, and audit/webhook logging behavior.
    • Added coverage for debouncing and first-authorized-path resolution.

Signed-off-by: faisalsiddique4400 <faisalsiddique10886@gmail.com>
@mo-auto mo-auto added comp-admin-ui Component affected by issue or PR kind-feature Issue or PR is a new feature request labels Jun 29, 2026
@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 0fce526b-6600-45b7-9421-ed6ba461852e

📥 Commits

Reviewing files that changed from the base of the PR and between 50c8308 and 6f35256.

📒 Files selected for processing (19)
  • admin-ui/app/routes/Apps/Profile/hooks/__tests__/useProfileDetails.test.tsx
  • admin-ui/app/routes/License/hooks/__tests__/useLicenseDetails.test.tsx
  • admin-ui/app/utils/hooks/__tests__/useFirstAuthorizedPath.test.tsx
  • admin-ui/app/utils/hooks/__tests__/useWebhookDialogAction.test.tsx
  • admin-ui/plugins/admin/components/Assets/hooks/__tests__/useAssetAudit.test.ts
  • admin-ui/plugins/admin/components/Assets/hooks/__tests__/useAssetMutations.test.tsx
  • admin-ui/plugins/admin/components/Mapping/hooks/__tests__/useMappingApi.test.tsx
  • admin-ui/plugins/admin/components/Webhook/hooks/__tests__/useWebhookAudit.test.ts
  • admin-ui/plugins/admin/components/Webhook/hooks/__tests__/useWebhookMutations.test.tsx
  • admin-ui/plugins/auth-server/components/Scopes/hooks/__tests__/useScopeActions.test.ts
  • admin-ui/plugins/auth-server/components/Scopes/hooks/__tests__/useScopeMutations.test.tsx
  • admin-ui/plugins/auth-server/components/Scopes/hooks/__tests__/useScopeQueries.test.ts
  • admin-ui/plugins/auth-server/components/Sessions/hooks/__tests__/useSessionMutations.test.tsx
  • admin-ui/plugins/auth-server/components/Ssa/hooks/__tests__/useSsaApi.test.tsx
  • admin-ui/plugins/auth-server/components/Ssa/hooks/__tests__/useSsaValidationState.test.ts
  • admin-ui/plugins/auth-server/hooks/__tests__/useAuthServerJsonProperties.test.tsx
  • admin-ui/plugins/saml/components/hooks/__tests__/useSamlApi.test.tsx
  • admin-ui/plugins/scripts/components/hooks/__tests__/useCustomScriptApi.test.tsx
  • admin-ui/plugins/user-claims/hooks/__tests__/useAttributeApi.test.tsx

📝 Walkthrough

Walkthrough

Adds Jest and React Testing Library coverage across admin-ui hook modules in app routes, admin plugins, auth-server plugins, SAML, scripts, user-claims, and user-management. No production code changes are included.

Changes

App-level hook tests

Layer / File(s) Summary
Utility hooks and route hooks
admin-ui/app/utils/hooks/__tests__/useDebounce.test.ts, admin-ui/app/utils/hooks/__tests__/useFirstAuthorizedPath.test.tsx, admin-ui/app/utils/hooks/__tests__/useWebhookDialogAction.test.tsx, admin-ui/app/routes/Apps/Profile/hooks/__tests__/useProfileDetails.test.tsx, admin-ui/app/routes/Dashboards/hooks/__tests__/useDashboardLockStats.test.tsx, admin-ui/app/routes/License/hooks/__tests__/useLicenseDetails.test.tsx
Tests cover debounce timing, authorized path resolution, webhook dialog behavior, profile details mapping and audit logging, dashboard lock stat aggregation and query gating, and license field stripping/reset flows.

Admin plugin hook tests

Layer / File(s) Summary
Health, MAU, Mapping, Assets, and Webhook hooks
admin-ui/plugins/admin/components/Health/hooks/__tests__/useFido2HealthStatus.test.tsx, admin-ui/plugins/admin/components/Health/hooks/__tests__/useHealthStatus.test.tsx, admin-ui/plugins/admin/components/MAU/hooks/__tests__/useMauStats.test.tsx, admin-ui/plugins/admin/components/Mapping/hooks/__tests__/useMappingApi.test.tsx, admin-ui/plugins/admin/components/Assets/hooks/__tests__/useAssetAudit.test.ts, admin-ui/plugins/admin/components/Assets/hooks/__tests__/useAssetMutations.test.tsx, admin-ui/plugins/admin/components/Assets/hooks/__tests__/useAssetQueries.test.tsx, admin-ui/plugins/admin/components/Webhook/hooks/__tests__/useGetWebhook.test.tsx, admin-ui/plugins/admin/components/Webhook/hooks/__tests__/useWebhookAudit.test.ts, admin-ui/plugins/admin/components/Webhook/hooks/__tests__/useWebhookMutations.test.tsx
Tests cover health and MAU query transforms, mapping aggregation, asset audit payload shaping, asset CRUD mutation side effects, query defaults, webhook query selection, webhook audit logging, and webhook CRUD mutation invalidation and dispatch.

Auth-server plugin hook tests

Layer / File(s) Summary
Audit, mutation, session, SSA, and JSON-property hooks
admin-ui/plugins/auth-server/components/AuthServerProperties/hooks/__tests__/useAuthServerScripts.test.ts, admin-ui/plugins/auth-server/components/Authentication/Acrs/hooks/__tests__/useAcrAudit.test.ts, admin-ui/plugins/auth-server/components/Authentication/AgamaFlows/hooks/__tests__/useAgamaActions.test.ts, admin-ui/plugins/auth-server/components/Logging/hooks/__tests__/useLoggingApi.test.tsx, admin-ui/plugins/auth-server/components/OidcClients/__tests__/hooks/useUpdateClient.test.ts, admin-ui/plugins/auth-server/components/Scopes/hooks/__tests__/useScopeActions.test.ts, admin-ui/plugins/auth-server/components/Scopes/hooks/__tests__/useScopeMutations.test.tsx, admin-ui/plugins/auth-server/components/Scopes/hooks/__tests__/useScopeQueries.test.ts, admin-ui/plugins/auth-server/components/Sessions/hooks/__tests__/useSessionMutations.test.tsx, admin-ui/plugins/auth-server/components/Ssa/hooks/__tests__/useSsaApi.test.tsx, admin-ui/plugins/auth-server/components/Ssa/hooks/__tests__/useSsaMutations.test.tsx, admin-ui/plugins/auth-server/components/Ssa/hooks/__tests__/useSsaValidationState.test.ts, admin-ui/plugins/auth-server/hooks/__tests__/useAuthServerJsonProperties.test.tsx
Tests cover config-script filtering and audit logging, ACR/Agama audit payloads, logging update mutation auditing, OIDC client update side effects, scope navigation and mutations, session delete/revoke flows, SSA query and mutation behavior, SSA validation flags, and auth-server JSON properties fetch/patch cache behavior.

SAML, scripts, user-claims, and user-management hook tests

Layer / File(s) Summary
Feature plugin hooks
admin-ui/plugins/saml/components/hooks/__tests__/useSamlApi.test.tsx, admin-ui/plugins/scripts/components/hooks/__tests__/useCustomScriptApi.test.tsx, admin-ui/plugins/scripts/components/hooks/__tests__/useMutationEffects.test.ts, admin-ui/plugins/user-claims/hooks/__tests__/useAttributeApi.test.tsx, admin-ui/plugins/user-claims/hooks/__tests__/useMutationEffects.test.ts, admin-ui/plugins/user-claims/hooks/__tests__/useSchemaAuditLogger.test.ts, admin-ui/plugins/user-claims/hooks/__tests__/useSchemaWebhook.test.ts, admin-ui/plugins/user-management/hooks/__tests__/useUserMutations.test.tsx
Tests cover SAML config and identity-provider CRUD, custom script queries and mutations, mutation effect toast/navigation handling, user-claims attribute CRUD and schema audit/webhook helpers, and user deletion with audit, webhook, and invalidation side effects.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • GluuFederation/flex#2713: Adds useDeleteSessionWithAudit and useRevokeSessionWithAudit, which are directly covered by the new session mutation tests.
  • GluuFederation/flex#2730: Introduces the scope hook behavior targeted by the new scope action, mutation, and query tests.
  • GluuFederation/flex#2859: Relates to the useProfileDetails and useLicenseDetails hook behaviors covered in this PR.

Suggested labels

kind-enhancement

Suggested reviewers

  • duttarnab
  • moabu

Poem

🐇 I bounded through tests from dawn to dusk,
With mocks and timers and audits in husk.
Every hook now has a tiny tune,
And no flaky moon may wobble the spoon.
Hops for coverage! 🥕

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly states the main change: adding hook test files in admin-ui.
Linked Issues check ✅ Passed The PR adds dedicated tests for many hooks across admin-ui, matching the linked request to add hook test coverage.
Out of Scope Changes check ✅ Passed The changes are all test additions for hook coverage and stay within the stated objective.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch admin-ui-issue-2895

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 17

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@admin-ui/app/routes/Apps/Profile/hooks/__tests__/useProfileDetails.test.tsx`:
- Around line 125-132: The test in useProfileDetails currently only covers the
implicit false case when userInum is undefined, so it does not verify that the
hook respects the enabled argument. Add a new test around useProfileDetails and
mockUseGetUserByInum that passes a valid userInum with enabled=false, then
assert opts.query.enabled is false to cover the explicit disabled branch.

In `@admin-ui/app/routes/License/hooks/__tests__/useLicenseDetails.test.tsx`:
- Around line 20-24: The `useLicenseConfigDelete` mock in
`useLicenseDetails.test.tsx` hides the mutation callbacks, so the
`useLicenseDetails` reset-flow success/error behavior is never covered. Update
the mock to capture the passed mutation options from `useLicenseConfigDelete`
and expose them in the test, then add assertions that explicitly invoke
`capturedDeleteOptions?.mutation?.onSuccess?.()` and
`capturedDeleteOptions?.mutation?.onError?.(...)` to verify the side effects in
`useLicenseDetails` such as query invalidation, audit posting, toast dispatch,
and `onResetSuccess`.

In
`@admin-ui/plugins/admin/components/Assets/hooks/__tests__/useAssetAudit.test.ts`:
- Around line 62-81: The `useAssetAudit.logAction()` test is too weak because it
only verifies `postUserAction` was called, not that the enriched audit payload
was posted after `addAdditionalData(...)`. Update the `useAssetAudit` test to
have `mockAddAdditionalData` mutate/enrich the audit object, or assert the exact
argument passed to `mockPostUserAction`, using the `logAction` flow and the
`mockAddAdditionalData` / `mockPostUserAction` symbols to locate the check. This
should ensure the test validates the final audit object rather than an
unmodified init payload.

In
`@admin-ui/plugins/admin/components/Assets/hooks/__tests__/useAssetMutations.test.tsx`:
- Around line 151-170: The delete success test for useDeleteAssetWithAudit is
missing coverage for the asset-list cache refresh. Update the test to assert
that invalidateQueriesByKey is triggered via mockInvalidate with the
GetAllAssets query key (the ['/api/v1/jans-assets'] key returned by
getGetAllAssetsQueryKey), alongside the existing delete, audit, dispatch, and
onSuccess checks.

In
`@admin-ui/plugins/admin/components/Mapping/hooks/__tests__/useMappingApi.test.tsx`:
- Around line 25-31: The mocked queries in useMappingApi.test.tsx are sharing
the same refetch mock through the baseQuery object, which can make the refetch
assertions in useMappingApi false positives. Create a separate jest.fn() refetch
spy for each query mock instead of spreading the same baseQuery.refetch into all
three mocked responses, so each expectation verifies the correct query instance.

In
`@admin-ui/plugins/admin/components/Webhook/hooks/__tests__/useWebhookAudit.test.ts`:
- Around line 62-86: The useWebhookAudit.logAction test only verifies that
addAdditionalData is invoked, but it does not confirm that postUserAction
receives the enriched audit object. Update the test in useWebhookAudit.test.ts
to assert the exact payload passed to mockPostUserAction, using the same audit
object shape produced after addAdditionalData in useWebhookAudit.logAction, so
the test covers the hook’s actual contract rather than just call count.

In
`@admin-ui/plugins/admin/components/Webhook/hooks/__tests__/useWebhookMutations.test.tsx`:
- Around line 89-109: The success-path tests for useCreateWebhookWithAudit and
the delete hook are missing an explicit assertion for the feature-query refresh,
so they can pass even if invalidateWebhooksByFeatureQueries(queryClient) is
removed. Update the relevant tests in useWebhookMutations.test.tsx to mock and
assert invalidateWebhooksByFeatureQueries (or its downstream feature
invalidation effects) alongside the existing mockPostMutateAsync, mockLogAction,
and mockInvalidateByKey checks, using the hook names useCreateWebhookWithAudit
and the delete mutation hook to locate the cases.

In
`@admin-ui/plugins/auth-server/components/Scopes/hooks/__tests__/useScopeQueries.test.ts`:
- Around line 99-121: The pagination test for useScopeAttributes is too weak
because it only checks call count, so it would still pass even if getAttributes
keeps using the same cursor. Update the test to assert the paginated arguments
passed to mockGetAttributes, especially the startIndex progression between
calls, in addition to the final merged attributes. Use the useScopeAttributes
hook and the mockGetAttributes calls to verify the loop contract in
useScopeQueries rather than relying on mockResolvedValueOnce alone.

In
`@admin-ui/plugins/auth-server/components/Sessions/hooks/__tests__/useSessionMutations.test.tsx`:
- Around line 151-201: Add a dedicated test for the audit-failure branch in
useRevokeSessionWithAudit, since the current describe block only covers revoke
success and mutation failure. Extend the existing useRevokeSessionWithAudit
suite in useSessionMutations.test.tsx by mocking the revoke mutation to succeed
while making the audit logger reject, then assert the revoke still runs, the
warning/error toast flow is triggered correctly, and the expected fallback
callback behavior occurs. Use the existing symbols useRevokeSessionWithAudit,
mockLogAuditUserAction, mockRevokeMutateAsync, and mockUpdateToast to locate and
validate the branch.

In
`@admin-ui/plugins/auth-server/components/Ssa/hooks/__tests__/useSsaApi.test.tsx`:
- Around line 73-79: Restore the process-global fetch mock after the useSsaApi
test suite finishes, since the current beforeAll assignment to global.fetch
leaves later tests polluted and order-dependent. Update the test setup in
useSsaApi.test.tsx by saving the original fetch before overwriting it and
restoring it in an afterAll cleanup, alongside the existing jest.clearAllMocks
in beforeEach, so the suite leaves global state unchanged.

In
`@admin-ui/plugins/auth-server/components/Ssa/hooks/__tests__/useSsaValidationState.test.ts`:
- Around line 9-13: `makeFormik()` in the `useSsaValidationState.test.ts` test
helper is constructing an incomplete Formik object, so `useSsaValidationState()`
will crash when it reads `formik.values.is_expirable`. Update `makeFormik` to
include a valid `values` object matching `SsaFormValues` along with the existing
`touched` and `errors`, and adjust the test helper’s `FormikProps` typing/cast
so it reflects the full shape instead of hiding the missing field.
- Around line 16-82: The `useSsaValidationState` test suite is missing coverage
for the special `expirationDateError` branch, which is handled differently from
the other fields. Add a test in `useSsaValidationState` that exercises the
`is_expirable` gate and verifies the `expirationDate` error/message behavior
when `values.is_expirable` changes, so the custom branch is covered alongside
the existing field-mapping cases.

In
`@admin-ui/plugins/auth-server/hooks/__tests__/useAuthServerJsonProperties.test.tsx`:
- Around line 107-124: The mutation test for
usePatchAuthServerJsonPropertiesMutation only checks the toast and user onError
path, so it can miss a regression where the hook stops dispatching the error
action. Tighten the test by asserting the dispatched error action is emitted
when mockPatch rejects, alongside the existing mockUpdateToast and userOnError
expectations, using the same mutation flow in this test case.

In `@admin-ui/plugins/saml/components/hooks/__tests__/useSamlApi.test.tsx`:
- Around line 151-173: The useUpdateSamlConfiguration test covers the PUT,
webhook, and audit paths but misses the cache-refresh side effect. Update the
test in useSamlApi’s useUpdateSamlConfiguration block to assert that
getGetSamlPropertiesQueryKey() is invalidated after a successful mutateAsync
call, using the query client or invalidateQueries spy tied to the same
wrapper/store setup.
- Around line 152-173: The SAML hook tests are only asserting that dispatch was
called, which doesn’t verify the toast behavior in useUpdateSamlConfiguration or
the related error path. Update the assertions in the affected tests to check the
exact dispatched action type and payload from the toast action creator, so the
tests confirm the success and error toast variants rather than any Redux
dispatch.
- Around line 130-148: Add no-session coverage for the session-gated SAML query
hooks in useSamlApi.test.tsx. Extend the existing hook tests for
useIdentityProviders and useTrustRelationships so they also assert that when the
store has no session, the hooks stay disabled and mockGet is not called,
matching the hasSession-based gating already used by useSamlConfiguration. Use
the existing helpers like buildStore, createWrapper, renderHook, and the hook
names themselves to locate the affected tests.

In `@admin-ui/plugins/user-claims/hooks/__tests__/useAttributeApi.test.tsx`:
- Around line 167-184: Strengthen the failure-path coverage in
useCreateAttribute by asserting the actual contract, not just that mutate exists
or dispatch was called. In the mutate wrapper test, verify that the rejected
create call from useCreateAttribute().mutate is handled without throwing and
that the failure is logged or otherwise observed as expected, using the mutate
wrapper and mockPostMutateAsync as the key symbols. In the onError test, assert
the exact toast dispatch payload (or message/variant) produced by
postOptions.mutation.onError rather than only checking mockDispatch call count,
so changes to the error toast content will fail this suite.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: ff83b391-7f1e-491b-a5e7-45b652fc54f1

📥 Commits

Reviewing files that changed from the base of the PR and between 5dc6c12 and 50c8308.

📒 Files selected for processing (37)
  • admin-ui/app/routes/Apps/Profile/hooks/__tests__/useProfileDetails.test.tsx
  • admin-ui/app/routes/Dashboards/hooks/__tests__/useDashboardLockStats.test.tsx
  • admin-ui/app/routes/License/hooks/__tests__/useLicenseDetails.test.tsx
  • admin-ui/app/utils/hooks/__tests__/useDebounce.test.ts
  • admin-ui/app/utils/hooks/__tests__/useFirstAuthorizedPath.test.tsx
  • admin-ui/app/utils/hooks/__tests__/useWebhookDialogAction.test.tsx
  • admin-ui/plugins/admin/components/Assets/hooks/__tests__/useAssetAudit.test.ts
  • admin-ui/plugins/admin/components/Assets/hooks/__tests__/useAssetMutations.test.tsx
  • admin-ui/plugins/admin/components/Assets/hooks/__tests__/useAssetQueries.test.tsx
  • admin-ui/plugins/admin/components/Health/hooks/__tests__/useFido2HealthStatus.test.tsx
  • admin-ui/plugins/admin/components/Health/hooks/__tests__/useHealthStatus.test.tsx
  • admin-ui/plugins/admin/components/MAU/hooks/__tests__/useMauStats.test.tsx
  • admin-ui/plugins/admin/components/Mapping/hooks/__tests__/useMappingApi.test.tsx
  • admin-ui/plugins/admin/components/Webhook/hooks/__tests__/useGetWebhook.test.tsx
  • admin-ui/plugins/admin/components/Webhook/hooks/__tests__/useWebhookAudit.test.ts
  • admin-ui/plugins/admin/components/Webhook/hooks/__tests__/useWebhookMutations.test.tsx
  • admin-ui/plugins/auth-server/components/AuthServerProperties/hooks/__tests__/useAuthServerScripts.test.ts
  • admin-ui/plugins/auth-server/components/Authentication/Acrs/hooks/__tests__/useAcrAudit.test.ts
  • admin-ui/plugins/auth-server/components/Authentication/AgamaFlows/hooks/__tests__/useAgamaActions.test.ts
  • admin-ui/plugins/auth-server/components/Logging/hooks/__tests__/useLoggingApi.test.tsx
  • admin-ui/plugins/auth-server/components/OidcClients/__tests__/hooks/useUpdateClient.test.ts
  • admin-ui/plugins/auth-server/components/Scopes/hooks/__tests__/useScopeActions.test.ts
  • admin-ui/plugins/auth-server/components/Scopes/hooks/__tests__/useScopeMutations.test.tsx
  • admin-ui/plugins/auth-server/components/Scopes/hooks/__tests__/useScopeQueries.test.ts
  • admin-ui/plugins/auth-server/components/Sessions/hooks/__tests__/useSessionMutations.test.tsx
  • admin-ui/plugins/auth-server/components/Ssa/hooks/__tests__/useSsaApi.test.tsx
  • admin-ui/plugins/auth-server/components/Ssa/hooks/__tests__/useSsaMutations.test.tsx
  • admin-ui/plugins/auth-server/components/Ssa/hooks/__tests__/useSsaValidationState.test.ts
  • admin-ui/plugins/auth-server/hooks/__tests__/useAuthServerJsonProperties.test.tsx
  • admin-ui/plugins/saml/components/hooks/__tests__/useSamlApi.test.tsx
  • admin-ui/plugins/scripts/components/hooks/__tests__/useCustomScriptApi.test.tsx
  • admin-ui/plugins/scripts/components/hooks/__tests__/useMutationEffects.test.ts
  • admin-ui/plugins/user-claims/hooks/__tests__/useAttributeApi.test.tsx
  • admin-ui/plugins/user-claims/hooks/__tests__/useMutationEffects.test.ts
  • admin-ui/plugins/user-claims/hooks/__tests__/useSchemaAuditLogger.test.ts
  • admin-ui/plugins/user-claims/hooks/__tests__/useSchemaWebhook.test.ts
  • admin-ui/plugins/user-management/hooks/__tests__/useUserMutations.test.tsx

Signed-off-by: faisalsiddique4400 <faisalsiddique10886@gmail.com>
@sonarqubecloud

Copy link
Copy Markdown

@duttarnab duttarnab merged commit e8156ae into main Jun 29, 2026
9 checks passed
@duttarnab duttarnab deleted the admin-ui-issue-2895 branch June 29, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-admin-ui Component affected by issue or PR kind-feature Issue or PR is a new feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(admin-ui): Add test files for all the hooks across the system.

3 participants