Skip to the editor

Fix the wrong selector

Locators · level 2 of 5 · PipelineHQ

A test that points at the wrong element tests nothing. Fix the selector, keep the check.

The problem

This test searches for Maya and checks the row count, but it targets contact-line, which does not exist, so it times out.

The rows are data-testid="contact-row". Fix the selector.

Fix the failing test

This test is red right now. Run it to see how it fails, then edit until it passes, without weakening what it checks.

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 fixed test has to fail on every copy.

Loading the editor…