You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The page.getByText() locator, while being similar to RTL's .getByText(), doesn't support the normalizer and other options available in RTL.
I consider this a bug for two reasons:
This difference in behavior isn't listed in Vitest's docs.
The docs even reference RTL's docs, which I read as "Learn more about this API because it's quite the same".
I find options like normalizer quite lacking since I don't see how you would select an element which text content is broken by a non-text UI element (you'd use normalizer for that).
Reproduction
Unfortunately, this is a docs/implementation issue.
Describe the bug
The
page.getByText()
locator, while being similar to RTL's.getByText()
, doesn't support thenormalizer
and other options available in RTL.I consider this a bug for two reasons:
I find options like
normalizer
quite lacking since I don't see how you would select an element which text content is broken by a non-text UI element (you'd usenormalizer
for that).Reproduction
Unfortunately, this is a docs/implementation issue.
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: