Skip to the editor

Assert the search result count

Tables & lists · level 2 of 5 · PipelineHQ

To prove a filter works, assert the count. A single visible match is not proof.

The problem

The test searches PipelineHQ for Maya. Add the assertion that proves the table filtered down to exactly one row.

Asserting only that "Maya Chen" is on the page is not enough, 8 rows would still pass. Assert the count.

Fill in the missing assertion

The test is set up but proves nothing yet. Add the assertion where the TODO is.

Done when

  • Searching for a name narrows the table to only the matching rows.

Bugs we plant

  • Contact search returns everything

We break each one in a copy of the app. Your assertion has to fail on every copy.

Loading the editor…