Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions docs/ecosystem-user-event.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ test('types inside textarea', () => {
## API

Note: All userEvent methods are synchronous with one exception: when `delay`
option used with `userEvent.type` as described below. We also discourage using `userEvent`
inside `before/after` blocks at all, for important reasons described in
option used with `userEvent.type` as described below. We also discourage using
`userEvent` inside `before/after` blocks at all, for important reasons described
in
["Avoid Nesting When You're Testing"](https://kentcdodds.com/blog/avoid-nesting-when-youre-testing).

### `click(element, eventInit, options)`
Expand Down Expand Up @@ -206,8 +207,8 @@ test('types into the input', () => {
### `upload(element, file, [{ clickInit, changeInit }])`

Uploads file to an `<input>`. For uploading multiple files use `<input>` with
`multiple` attribute and the second `upload` argument must be array then. Also
it's possible to initialize click or change event with using third argument.
the `multiple` attribute and the second `upload` argument as an array. It's also
possible to initialize a click or change event using a third argument.

```jsx
import React from 'react'
Expand Down