Skip to content

Commit 6ab722b

Browse files
docs(prefer-explicit-assert): change deprecated waitForElement to waitFor in examples (#414)
Co-authored-by: Michaël De Boey <[email protected]>
1 parent fdeefdc commit 6ab722b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/prefer-explicit-assert.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ expect(utils.getByText('foo')).toBeDefined();
4040
expect(queryByText('foo')).toBeInTheDocument();
4141

4242
// Doing something with the element returned without asserting is absolutely fine
43-
await waitForElement(() => getByText('foo'));
43+
await waitFor(() => getByText('foo'));
4444
fireEvent.click(getByText('bar'));
4545
const quxElement = getByText('qux');
4646
```

0 commit comments

Comments
 (0)