We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
waitForElement
waitFor
1 parent fdeefdc commit 6ab722bCopy full SHA for 6ab722b
docs/rules/prefer-explicit-assert.md
@@ -40,7 +40,7 @@ expect(utils.getByText('foo')).toBeDefined();
40
expect(queryByText('foo')).toBeInTheDocument();
41
42
// Doing something with the element returned without asserting is absolutely fine
43
-await waitForElement(() => getByText('foo'));
+await waitFor(() => getByText('foo'));
44
fireEvent.click(getByText('bar'));
45
const quxElement = getByText('qux');
46
```
0 commit comments