Skip to content

Add tests for the public events page search#354

Merged
BigBen-7 merged 2 commits into
Lead-Studios:mainfrom
Habibah371:Add-tests-for-the-public-events-page-search
May 31, 2026
Merged

Add tests for the public events page search#354
BigBen-7 merged 2 commits into
Lead-Studios:mainfrom
Habibah371:Add-tests-for-the-public-events-page-search

Conversation

@Habibah371
Copy link
Copy Markdown
Contributor

FE-175: Add Test Coverage for Public Events Page Search and Filter Functionality

Overview

This PR expands test coverage for the public events page by adding explicit integration tests for search and category filtering edge cases. While the existing test suite validates the general filtering flow, several important user scenarios were not directly covered.

Changes Implemented

Search Functionality Tests

  • Added test to verify that searching with a term that matches no events displays the appropriate empty state.
  • Validates that no event cards are rendered when no results are found.

Category Filter Tests

  • Added test to verify that selecting a category filter correctly reduces the displayed event list.
  • Confirms that only events belonging to the selected category remain visible.

Combined Search + Filter Tests

  • Added test coverage for applying both a search query and category filter simultaneously.
  • Verifies that results satisfy both filtering conditions.
  • Ensures filtering logic remains consistent when multiple criteria are active.

Acceptance Criteria Coverage

  • ✅ Search returning no results displays the empty state
  • ✅ Category filter reduces the event list appropriately
  • ✅ Combined search and category filter behavior is tested
  • ✅ All tests pass with npm test

Testing

Added integration tests covering:

  1. Empty search results scenario
  2. Single category filtering
  3. Combined search and category filtering
  4. Result count and rendered event validation
  5. Empty-state rendering validation

Impact

These tests improve confidence in the public events discovery experience by ensuring search and filtering logic behaves correctly across common edge cases and user interactions.
Closes #296

Build-a-public-organizer-profile-page
Add-tests-for-the-public-events-page-search
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

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

@BigBen-7 BigBen-7 merged commit ebceac2 into Lead-Studios:main May 31, 2026
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.

FE-175 Add tests for the public events page search and filter functionality

2 participants