testing-library / dom-testing-library

🐙 Simple and complete DOM testing utilities that encourage good testing practices.
https://testing-library.com/dom
MIT License
3.26k stars 466 forks source link

`description` option is not working in ByRole #1181

Closed lsoares closed 1 year ago

lsoares commented 1 year ago

Environment: Testing Playground https://testing-playground.com/gist/6bb1405d5702eb513e147b32a205a073/57b748306910bcd9cde75dbe9acf69f95d22e0fc

Problem description:

Two nodes are returned with that query. But according to the docs, only one should have been returned. Apparently, the description option is being ignored (or I may be missing something but this was copied straight from the docs).

lsoares commented 1 year ago

the same may be happening with current parameter (also copied straight from the docs)

lsoares commented 1 year ago

the same may be happening with expanded parameter

lsoares commented 1 year ago

I just learned this is an issue with the Playground which is another repo.