dom-testing-library icon indicating copy to clipboard operation
dom-testing-library copied to clipboard

🐙 Simple and complete DOM testing utilities that encourage good testing practices.

Results 144 dom-testing-library issues
Sort by recently updated
recently updated
newest added

### Describe the feature you'd like: When `getByText` returns an error message it currently does not mention if any selector other than "*" was provided to the query and returns...

### Versions `@testing-library/jest-dom` `v5.16.5` `@testing-library/react` `v13.3.0` ### The problem ```js // Given that an option with the name "Option 1" getByRole("option", { name: "option 1", exact: false }) // should...

**What**: Adds a link to the Testing-Library playground, when `getBy*` queries fail, as requested in https://github.com/testing-library/dom-testing-library/issues/837. **Why**: It adds awareness of the playground, which might help in making a better...

enhancement

**What**: Update the dev dependency `kcd-scripts` **Why**: To remain up-to-date with newer sub-dependencies **How**: Update `kcd-scripts`, fix various linting warnings using `eslint-disable-next-line` where relevant **Checklist**: - [x] Documentation added to...

### Summary `@testing-library/jest-dom` explicitly disallows the use of the `level` property in `getByRole` for all roles except `heading`. This needs to be broadened as W3 also supports this property on...

enhancement

### Describe the feature you'd like: A mechanism for turning off color highlighting in all `prettyDOM` calls. When tests are being run in environments that don't respect colors, the output...

enhancement

### Describe the feature you'd like: Web components are an increasingly popular way of creating reusable elements. Due to the existence of shadow DOM, user-focused testing is more difficult and...

needs discussion
released
released on @beta

- `@testing-library/react` version: ^13.2.0 - Testing Framework and version: react-scripts ^5.0.1 - DOM Environment: @testing-library/jest-dom: "^5.16.4", ### Relevant code or config: ```jsx import escapeRegExp from "lodash/escapeRegExp"; import React, { ReactElement...

- `@testing-library/dom` version: v8.14.0. - Testing Framework and version: N/A - DOM Environment: Chrome 103.0.5060.114 (Official Build) (64-bit) ### Relevant code or config: ```html some text ``` ### What you...

### Describe the feature you'd like: I would like it if `@testing-library/dom` would re-export the `computeAccessibleName` and `computeAccessibleDescription` functions from `dom-accessibility-api`. At least as part of the `dist/dom.umd.js` bundle. `computeAccessibleName`...

enhancement