# testing-library/cypress-testing-library

🐅 Simple and complete custom Cypress commands and utilities that encourage good testing practices.

Repository: https://github.com/testing-library/cypress-testing-library
Canonical: https://ross.abutalabs.com/products/cypress-testing-library
Homepage: http://npm.im/@testing-library/cypress
Language: JavaScript
License: MIT
License Family: permissive
Topics: testing
Last push: 2026-04-29T16:38:24+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 79, release rhythm 49, longevity 100
- inputs: {"age_days": 3071, "days_push": 126, "days_rel": 126, "gap_med": 231.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1823, forks 159 (observed 2026-08-28T04:05:41.157897+00:00)

## What it is
A Cypress plugin that adds custom commands exposing DOM Testing Library query methods (getByLabelText, getByText, etc.) inside Cypress end-to-end tests. It encourages accessible, implementation-detail-free selectors in browser tests.

## Use cases
- use testing-library queries in cypress tests
- find elements by accessible label in e2e tests
- write cypress tests without brittle css selectors
- add getByRole and getByText commands to cypress
- share dom testing library selectors between unit and e2e tests

## When to choose
- you already use Cypress and want Testing Library-style queries
- you want tests that select elements the way users do (labels, roles, text)

## When to avoid
- you use Playwright or another e2e runner instead of Cypress
- you only need unit-level DOM testing without a browser runner

## Facets
- artifact type: library
- maturity: active
- function: testing, e2e-testing
- domain: testing, developer-tools, web-development
- platform: browser
- tags: cypress, dom-testing-library, e2e, custom-commands, query-helpers, nodejs, javascript

## Member repositories
- testing-library/cypress-testing-library (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:41.157897+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:19:45.653380+00:00, confidence not recorded.
  - readme: https://github.com/testing-library/cypress-testing-library (fetched 2026-08-28T04:05:41.157897+00:00, sha 35b50cc79250)
- Data as of 2026-08-30T08:39:29.467469+00:00.
