Skip to content

Add test coverage for AnchorDetail's FIX - #414

Merged
Jagadeeshftw merged 2 commits into
AnchorNet-Org:mainfrom
Mitch5000:Add-test-coverage-for-AnchorDetail's-FIXED
Jul 27, 2026
Merged

Add test coverage for AnchorDetail's FIX#414
Jagadeeshftw merged 2 commits into
AnchorNet-Org:mainfrom
Mitch5000:Add-test-coverage-for-AnchorDetail's-FIXED

Conversation

@Mitch5000

Copy link
Copy Markdown
Contributor

Description

This PR introduces comprehensive integration-level test coverage for the modal "Cancel" and "Keep" actions within both the AnchorDetail and SettlementDetail components. It guarantees that backing out of a destructive confirmation dialog (either deactivating an anchor or cancelling a pending settlement) does not trigger the underlying API endpoints (deregisterAnchor/cancelSettlement), and maintains the original state of the resource.

Additionally, this PR fixes two critical pre-existing compilation and type errors in the production frontend code:

  1. src/components/AnchorsPanel.tsx: Declared missing initialSort, setSortParam, and setDirParam references to complete the sorting mechanism and satisfy the TypeScript compiler.
  2. src/components/PoolsPanel.tsx: Declared the missing PoolsPanelProps interface and resolved custom hook type-signature conflicts with useAsync.

Both changes ensure that the production application builds and deploys correctly with zero errors, and all tests run with 100% success.

Closes #test-coverage-gap

Checklist

  • I added a CHANGELOG.md entry under the next ## [0.9.2] section
    (see the Format note at the top of CHANGELOG.md), or this PR
    is docs-only / test-only / internal tooling and doesn't change
    user-facing behavior.

  • Tests added/updated for the change.

Closes #323

@Jagadeeshftw
Jagadeeshftw merged commit fcb0359 into AnchorNet-Org:main Jul 27, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add test coverage for AnchorDetail's and SettlementDetail's confirm-dialog cancel path

2 participants