testing-playground icon indicating copy to clipboard operation
testing-playground copied to clipboard

Custom Function Matcher isn't matching

Open Fullchee opened this issue 3 months ago • 0 comments

Bug Report 🐛

Custom Function Matcher doesn't seem to work in the Testing Playground

Image

To Reproduce ✔️

https://testing-playground.com/gist/141dafaa518e99351341c78747a75eed/f98b347bd2906d644a4571e9b17b50f6c9e59d02

Given the HTML

<p>Hello <strong>World</strong></p>

should this query be able to select Hello World

screen.getByText(
  (_, element) => element.textContent === 'Hello World'
);

However, the playground isn't catching it

Expected behavior 🤔

It should be able to match Hello World

Your Environment 💻

  • browser: Chrome
  • os: Mac

Fullchee avatar Sep 01 '25 16:09 Fullchee