testing-playground
testing-playground copied to clipboard
Custom Function Matcher isn't matching
Bug Report 🐛
Custom Function Matcher doesn't seem to work in the Testing Playground
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