Skip to content

test: validate meta.total reflects filtered creator count#531

Open
techAlhaji wants to merge 2 commits into
accesslayerorg:mainfrom
techAlhaji:test/creator-filtered-total
Open

test: validate meta.total reflects filtered creator count#531
techAlhaji wants to merge 2 commits into
accesslayerorg:mainfrom
techAlhaji:test/creator-filtered-total

Conversation

@techAlhaji

Copy link
Copy Markdown

Closes #512

Summary

Adds an integration test to verify that the creator listing endpoint reports the correct filtered total when a price range filter is applied.

Changes

  • Added an integration test for the creator listing endpoint
  • Seeded five creators with varying prices
  • Applied a price range filter matching exactly three creators
  • Verified meta.total reports the filtered count rather than the total number of creators
  • Verified the returned data array length matches meta.total

Acceptance Criteria Covered

  • meta.total reflects the filtered creator count
  • data.length === meta.total
  • ✅ Regression protection added for future filtering changes

Testing

Added coverage for:

  • unfiltered creator listing (existing behavior unchanged)
  • filtered creator listing
  • pagination metadata consistency
  • filtered count matches returned records

Verification

Executed:

  • npm test
  • npm run build (if applicable)

Notes

  • Test-only change
  • No production logic modified unless required to fix the failing behavior
  • Existing API contract remains unchanged

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@techAlhaji 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

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 integration test for creator list returning correct total count after price filter applied

1 participant