There was an error while loading. Please reload this page.
1 parent ef00b12 commit c0407faCopy full SHA for c0407fa
docs/queries/about.mdx
@@ -259,7 +259,7 @@ screen.getByText('hello world', { exact: false }) // ignore case
259
screen.getByText(/World/) // substring match
260
screen.getByText(/world/i) // substring match, ignore case
261
screen.getByText(/^hello world$/i) // full string match, ignore case
262
-screen.getByText(/Hello W?oRlD/i) // advanced regex
+screen.getByText(/Hello W?oRlD/i) // substring match, ignore case, searches for "hello world" or "hello orld"
263
264
// Matching with a custom function:
265
screen.getByText((content, element) => content.startsWith('Hello'))
0 commit comments