Skip to content

Add test for recipe search truncation behavior#48

Merged
cfuehrmann merged 2 commits intomainfrom
test/add-max-displayed-behavior-test
Oct 6, 2025
Merged

Add test for recipe search truncation behavior#48
cfuehrmann merged 2 commits intomainfrom
test/add-max-displayed-behavior-test

Conversation

@cfuehrmann
Copy link
Owner

Summary

Adds test coverage for the MAX_DISPLAYED truncation behavior in recipe search.

Change

  • New test: test_search_many_matches_shows_truncated_list demonstrates behavior when search returns >3 matches
  • Snapshot: Shows current truncation: first 3 matches + "... and X more"

Test Case

Search for "chicken" with 5 matching recipes:

  • Shows: First 3 matches
  • Truncates: "... and 2 more"
  • Total: 37 tests (was 36)

This provides baseline coverage for evaluating potential changes to the truncation behavior.

Test demonstrates current behavior where searches with >3 matches
show first 3 results and '... and X more' message
@cfuehrmann cfuehrmann merged commit 84e9a4f into main Oct 6, 2025
5 checks passed
@cfuehrmann cfuehrmann deleted the test/add-max-displayed-behavior-test branch October 6, 2025 11:15
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.

1 participant