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
Wire up the existing matchesJSRegex utility (already used by ValuePredicate
for by.text/by.id/by.label) to the ValueExpectation path so that
toHaveText(/regex/) works on iOS, matching Android behaviour.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Expects the element to have the specified text. Accepts a string for exact matching or a regular expression for pattern matching (see [regex flags](matchers.md#regex-matching)).
54
+
55
+
:::note
56
+
When using a regular expression, it must match the **entire** text of the element on both iOS and Android — partial matches are not supported. Use `.*` to match surrounding content, e.g. `/.*Hello.*/` to check that the text contains "Hello".
0 commit comments