Skip to content

test(frontend): add test coverage for admin pages (#1320) - #1379

Merged
Mosas2000 merged 1 commit into
StellaBridge:mainfrom
DevNetlife:test/1319-1320-1329-1330-frontend-admin-tests-and-backend-fixes
Sep 28, 2026
Merged

Mosas2000 merged 1 commit into
StellaBridge:mainfrom
DevNetlife:test/1319-1320-1329-1330-frontend-admin-tests-and-backend-fixes

Conversation

@DevNetlife

Copy link
Copy Markdown
Contributor

Summary

This pull request adds complete unit and integration test coverage for six previously untested admin pages in frontend/src/pages/admin/.

Closes #1320
Closes #1319
Closes #1330
Closes #1329


Added Test Suites

  1. AdminImpersonationSafeguards.test.tsx

    • Role-based admin API token authorization handling.
    • Active impersonation banner rendering and session lifecycle (initiation & termination).
    • Fetching and inspecting session request audit logs.
  2. AllowlistManagement.test.tsx

    • Rendering active contract allowlist entries.
    • Tab switching between current allowlist and pending change requests.
    • Submitting new change requests and reviewing pending approvals.
  3. SignedRequestVerification.test.tsx

    • Rendering HMAC request signing credentials and status.
    • Issuing new signing key modal workflow.
    • Executing signature computation and verification sandbox calculations.
  4. ParseQuarantineQueue.test.tsx

    • Quarantine queue statistics and record list rendering.
    • Enqueueing failed ingestion payload records.
    • Retrying and resolving quarantine queue items.
  5. SecurityEventCorrelation.test.tsx

    • Correlation views summary cards and active alert lists.
    • Filtering rules by search terms, severity, and status.
    • Creating custom security event correlation rules.
  6. WebhookIpAllowlist.test.tsx

    • Inbound and outbound IP/CIDR allowlist rule display.
    • Adding new IP allowlist rules.
    • Interactive IP access evaluation simulator.

Verification

  • Ran npx vitest run src/pages/admin/*.test.tsx.
  • All 18 tests across 6 test suites passed cleanly with 100% success rate.

Add unit and integration tests for AdminImpersonationSafeguards, AllowlistManagement, SignedRequestVerification, ParseQuarantineQueue, SecurityEventCorrelation, and WebhookIpAllowlist.
@drips-wave

drips-wave Bot commented Sep 28, 2026

Copy link
Copy Markdown

@DevNetlife Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Mosas2000
Mosas2000 merged commit 62f76a8 into StellaBridge:main Sep 28, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants