Skip to main content

Writing resilient selectors

The product philosophy: prefer stable, accessibility-first locators so tests stop breaking in the first place.

:::note Draft — scaffolded page This page is a stub. Planned contents:

  • Why brittle selectors break (id/className churn)
  • Prefer getByRole / getByLabel / data-testid
  • Before/after JS-TS locator examples
  • How review mode nudges teams here :::