|
21 | 21 | [![version][version-badge]][package] |
22 | 22 | [![downloads][downloads-badge]][npmtrends] |
23 | 23 | [![MIT License][license-badge]][license] |
24 | | - |
25 | | -<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> |
26 | | -[](#contributors-) |
27 | | -<!-- ALL-CONTRIBUTORS-BADGE:END --> |
| 24 | +[![All Contributors][all-contributors-badge]](#contributors) |
28 | 25 | [![PRs Welcome][prs-badge]][prs] |
29 | 26 | [![Code of Conduct][coc-badge]][coc] |
30 | 27 | <!-- prettier-ignore-end --> |
@@ -175,9 +172,9 @@ are typed. By default it's 0. You can use this option if your component has a |
175 | 172 | different behavior for fast or slow users. If you do this, you need to make sure |
176 | 173 | to `await`! |
177 | 174 |
|
178 | | -> To be clear, `userEvent.type` *always* returns a promise, but you *only* need |
179 | | -> to `await` the promise it returns if you're using the `delay` option. Otherwise |
180 | | -> everything runs synchronously and you can ignore the promise. |
| 175 | +> To be clear, `userEvent.type` _always_ returns a promise, but you _only_ need |
| 176 | +> to `await` the promise it returns if you're using the `delay` option. |
| 177 | +> Otherwise everything runs synchronously and you can ignore the promise. |
181 | 178 |
|
182 | 179 | `type` will click the element before typing. To disable this, set the |
183 | 180 | `skipClick` option to `true`. |
@@ -604,6 +601,7 @@ Thanks goes to these people ([emoji key][emojis]): |
604 | 601 |
|
605 | 602 | <!-- markdownlint-enable --> |
606 | 603 | <!-- prettier-ignore-end --> |
| 604 | + |
607 | 605 | <!-- ALL-CONTRIBUTORS-LIST:END --> |
608 | 606 |
|
609 | 607 | This project follows the [all-contributors][all-contributors] specification. |
|
616 | 614 | <!-- prettier-ignore-start --> |
617 | 615 | [npm]: https://www.npmjs.com |
618 | 616 | [node]: https://nodejs.org |
619 | | -[build-badge]: https://img.shields.io/travis/testing-library/user-event.svg?style=flat-square |
620 | | -[build]: https://travis-ci.org/testing-library/user-event |
| 617 | +[build-badge]: https://img.shields.io/github/workflow/status/testing-library/user-event/validate/main?logo=github&style=flat-square |
| 618 | +[build]: https://github.com/testing-library/user-event/actions?query=workflow%3Avalidate |
621 | 619 | [coverage-badge]: https://img.shields.io/codecov/c/github/testing-library/user-event.svg?style=flat-square |
622 | 620 | [coverage]: https://codecov.io/github/testing-library/user-event |
623 | 621 | [version-badge]: https://img.shields.io/npm/v/@testing-library/user-event.svg?style=flat-square |
|
632 | 630 | [coc]: https://github.com/testing-library/user-event/blob/master/other/CODE_OF_CONDUCT.md |
633 | 631 | [emojis]: https://github.com/all-contributors/all-contributors#emoji-key |
634 | 632 | [all-contributors]: https://github.com/all-contributors/all-contributors |
| 633 | +[all-contributors-badge]: https://img.shields.io/github/all-contributors/testing-library/user-event?color=orange&style=flat-square |
635 | 634 | [bugs]: https://github.com/testing-library/user-event/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+sort%3Acreated-desc+label%3Abug |
636 | 635 | [requests]: https://github.com/testing-library/user-event/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3Aenhancement |
637 | 636 | [good-first-issue]: https://github.com/testing-library/user-event/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3Aenhancement+label%3A%22good+first+issue%22 |
|
0 commit comments