Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/user-event/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ test('trigger some awesome feature when clicking the button', async () => {
// See https://testing-library.com/docs/dom-testing-library/install#wrappers
render(<MyComponent />)

await user.click(screen.getByRole('button', { name: /click me!/i }))
await userEvent.click(screen.getByRole('button', { name: /click me!/i }))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


// ...assertions...
})
Expand Down