Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Test the intersection of search and category filters

A search box can pass its tests while a category filter passes its own, yet the combined interface still returns the wrong set. The missing assertion is often the intersection: a result must satisfy both active conditions. I work on Riddle List , a daily-puzzle directory. This AI-assisted article describes a standalone test plan for a filtering interface. It does not claim that new production…

A search engine's test plan should verify the intersection of filters. Start with three records, two of which match the category and query, one matching only the category, and one matching only the query. A fourth record outside both conditions helps confirm the interface doesn't reset to an unfiltered view. Test both filter orders: category first, then query; query first, then category.

If the product promises independent filters, both sequences should yield identical results. Inspect active controls - a stale category label in a filtered list is a different failure than an incorrect list. The visible results and the interface's communicated state must align. Test the empty state with a query that matches nothing in the selected category but matches elsewhere.

The interface should follow its documented empty-state behavior. Check the recovery action separately - clearing the query, changing the category, and clearing all filters are distinct actions. A test should name the one it performs and verify which conditions remain active. Filtering a list should not permit rewriting unrelated saved data.

Keep saved fixture records separate from visible intersections. Test expectations should include an empty-state journey and a retained saved record, providing more useful evidence than a single successful search screenshot.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

A link checker says 33 of our 232 outbound links are broken, and a real browser says none of them are

Nakodo has 106 public pages and a lot of citations. Twelve of them compare us to a named competitor and link to that competitor's own pricing page as the source.

  • 33 out of 232 outbound links on Nakodo's website are broken according to a link checker.
  • Link checker reports 33 links returning 403 errors, indicating access is forbidden.
  • Real browser inspection finds none of the 33 links are actually broken or moved.

Dynamic Programming

Dynamic Programming: Stop Solving the Same Problem Twice You're climbing a staircase with 10 steps, and you can take either 1 or 2 steps at a time. How many different ways can you reach the top?

  • Dynamic programming breaks down large problems into smaller overlapping subproblems
  • Two key properties: overlapping subproblems and optimal substructure
  • Two implementation approaches: top-down (memoization) and bottom-up (tabulation)

More from Monday, 30 November 2026 →