Skip to content

bug: search empty state not shown when no results match #216

@zacharias-ona

Description

@zacharias-ona

Description

The E2E test search.spec.ts:188 ("search with no matches shows empty state") fails because the "No pages match your search" message is not rendered when searching for a nonsense string that should return zero results.

Detected during post-merge verification of PR #214, but the failure is unrelated to that PR's changes (slash menu navigation). This is a pre-existing issue in the sidebar search component.

Acceptance Criteria

  • Searching for a string with no matches displays the "No pages match your search" empty state message
  • The E2E test search with no matches shows empty state passes reliably
  • pnpm lint && pnpm typecheck && pnpm test pass

Technical Notes

  • Failure: locator('#search-results').getByText('No pages match your search') — element not found at e2e/search.spec.ts:204
  • Root cause: The empty state message is either not rendered or uses different text/markup than the test expects
  • Affected route: Sidebar search component (all workspace pages)
  • PR that surfaced the regression: fix(editor): stabilize slash menu arrow key navigation (#205) #214 (not the cause)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions