Skip to content

test: add API and E2E tests for filtered cluster endpoint - #45

Merged
kelleyglenn merged 2 commits into
masterfrom
feature/44-cluster-filter-tests
Feb 25, 2026
Merged

test: add API and E2E tests for filtered cluster endpoint#45
kelleyglenn merged 2 commits into
masterfrom
feature/44-cluster-filter-tests

Conversation

@kelleyglenn

Copy link
Copy Markdown
Owner

Summary

  • Add 8 API tests for GET /search/cluster endpoint (clusters, amendment/participant/combined filters, empty bbox, invalid bbox, missing params)
  • Add 2 E2E tests for cluster filtering on map page (applying amendment filter updates clusters, clearing filters restores them)

Depends on:

  • AcctAtlas-search-service#28 (merged)
  • AcctAtlas-web-app#67 (merged)

Test plan

  • All 115 API tests pass (0 failures)
  • All 204 E2E tests pass across Chromium, Firefox, and WebKit

Closes #44

🤖 Generated with Claude Code

kelleyglenn and others added 2 commits February 24, 2026 23:19
Add search cluster endpoint API tests (filters, validation, empty bbox)
and E2E tests verifying cluster markers update when filters are applied
and restored when cleared.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Change toBeLessThanOrEqual to toBeLessThan so the test actually
  verifies filtering reduces cluster count (not just stays the same)
- Replace hardcoded waitForTimeout with polling assertion

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kelleyglenn
kelleyglenn merged commit 219b5d0 into master Feb 25, 2026
2 checks passed
@kelleyglenn
kelleyglenn deleted the feature/44-cluster-filter-tests branch February 25, 2026 09:59
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.

test: add integration tests for filtered cluster endpoint

1 participant