2
2
<h1 >user-event</h1 >
3
3
4
4
<a href =" https://www.emojione.com/emoji/1f415 " >
5
- <img height =" 80 " width =" 80 " alt =" dog " src =" https://raw.githubusercontent.com/gpx/user-event/master/other/dog.png " />
5
+ <img
6
+ height="80"
7
+ width="80"
8
+ alt="dog"
9
+ src="https://raw.githubusercontent.com/testing-library/user-event/master/other/dog.png "
10
+ />
6
11
</a >
7
12
8
- <p >Simulate user events for <a href =" https://github.com/kentcdodds/react-testing-library " >react-testing-library</a ></p >
13
+ <p >Simulate user events for <a href =" https://github.com/testing-library/react-testing-library " >react-testing-library</a >.</p >
14
+
15
+ <br />
9
16
</div >
10
17
11
18
<hr />
12
19
13
- [ ![ Build Status] ( https://travis-ci.org/Gpx /user-event.svg?branch=master )] ( https://travis-ci.org/Gpx /user-event )
14
- [ ![ Maintainability] ( https://api.codeclimate.com/v1/badges/75f1ff4397e994c6004e/maintainability )] ( https://codeclimate.com/github/Gpx /user-event/maintainability )
15
- [ ![ Test Coverage] ( https://api.codeclimate.com/v1/badges/75f1ff4397e994c6004e/test_coverage )] ( https://codeclimate.com/github/Gpx /user-event/test_coverage )
16
- [ ![ All Contributors] ( https://img.shields.io/badge/all_contributors-3 -orange.svg?style=flat-square )] ( #contributors )
17
- [ ![ Greenkeeper badge] ( https://badges.greenkeeper.io/Gpx /user-event.svg )] ( https://greenkeeper.io/ )
20
+ [ ![ Build Status] ( https://travis-ci.org/testing-library /user-event.svg?branch=master )] ( https://travis-ci.org/testing-library /user-event )
21
+ [ ![ Maintainability] ( https://api.codeclimate.com/v1/badges/75f1ff4397e994c6004e/maintainability )] ( https://codeclimate.com/github/testing-library /user-event/maintainability )
22
+ [ ![ Test Coverage] ( https://api.codeclimate.com/v1/badges/75f1ff4397e994c6004e/test_coverage )] ( https://codeclimate.com/github/testing-library /user-event/test_coverage )
23
+ [ ![ All Contributors] ( https://img.shields.io/badge/all_contributors-4 -orange.svg?style=flat-square )] ( #contributors )
24
+ [ ![ Greenkeeper badge] ( https://badges.greenkeeper.io/testing-library /user-event.svg )] ( https://greenkeeper.io/ )
18
25
19
26
## The problem
20
27
21
28
From
22
- [ kentcdodds /dom-testing-library #107 ] ( https://github.com/kentcdodds /dom-testing-library/issues/107 ) :
29
+ [ testing-library /dom-testing-library #107 ] ( https://github.com/testing-library /dom-testing-library/issues/107 ) :
23
30
24
31
> [ ...] it is becoming apparent the need to express user actions on a web page
25
32
> using a higher-level abstraction than ` fireEvent `
@@ -36,17 +43,23 @@ change the state of the checkbox.
36
43
37
44
With NPM:
38
45
39
- ` npm install user-event --dev `
46
+ ``` sh
47
+ npm install user-event --dev
48
+ ```
40
49
41
50
With Yarn:
42
51
43
- ` yarn add user-event --dev `
52
+ ``` sh
53
+ yarn add user-event --dev
54
+ ```
44
55
45
56
Now simply import it in your tests:
46
57
47
58
``` js
48
59
import userEvent from " user-event" ;
60
+
49
61
// or
62
+
50
63
var userEvent = require (" user-event" );
51
64
```
52
65
@@ -124,14 +137,14 @@ different behavior for fast or slow users.
124
137
## Contributors
125
138
126
139
Thanks goes to these wonderful people
127
- ([ emoji key] ( https://github.com/kentcdodds /all-contributors#emoji-key ) ):
140
+ ([ emoji key] ( https://github.com/all-contributors /all-contributors#emoji-key ) ):
128
141
129
142
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
130
143
<!-- prettier-ignore -->
131
- <table><tr><td align="center"><a href="https://twitter.com/Gpx"><img src="https://avatars0.githubusercontent.com/u/767959?v=4" width="100px;" alt="Giorgio Polvara"/><br /><sub><b>Giorgio Polvara</b></sub></a><br /><a href="https://github.com/Gpx/user-event/issues?q=author%3AGpx" title="Bug reports">🐛</a> <a href="https://github.com/Gpx/user-event/commits?author=Gpx" title="Code">💻</a> <a href="https://github.com/Gpx/user-event/commits?author=Gpx" title="Documentation">📖</a> <a href="#ideas-Gpx" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-Gpx" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#review-Gpx" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/Gpx/user-event/commits?author=Gpx" title="Tests">⚠️</a></td><td align="center"><a href="https://github.com/weyert"><img src="https://avatars3.githubusercontent.com/u/7049?v=4" width="100px;" alt="Weyert de Boer"/><br /><sub><b>Weyert de Boer</b></sub></a><br /><a href="https://github.com/Gpx/user-event/commits?author=weyert" title="Code">💻</a> <a href="https://github.com/Gpx/user-event/commits?author=weyert" title="Tests">⚠️</a></td><td align="center"><a href="https://github.com/twhitbeck"><img src="https://avatars2.githubusercontent.com/u/762471?v=4" width="100px;" alt="Tim Whitbeck"/><br /><sub><b>Tim Whitbeck</b></sub></a><br /><a href="https://github.com/Gpx/user-event/issues?q=author%3Atwhitbeck" title="Bug reports">🐛</a> <a href="https://github.com/Gpx/user-event/commits?author=twhitbeck" title="Code">💻</a></td></tr></table>
144
+ <table><tr><td align="center"><a href="https://twitter.com/Gpx"><img src="https://avatars0.githubusercontent.com/u/767959?v=4" width="100px;" alt="Giorgio Polvara"/><br /><sub><b>Giorgio Polvara</b></sub></a><br /><a href="https://github.com/testing-library/user-event/issues?q=author%3AGpx" title="Bug reports">🐛</a> <a href="https://github.com/testing-library/user-event/commits?author=Gpx" title="Code">💻</a> <a href="https://github.com/testing-library/user-event/commits?author=Gpx" title="Documentation">📖</a> <a href="#ideas-Gpx" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-Gpx" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#review-Gpx" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/testing-library/user-event/commits?author=Gpx" title="Tests">⚠️</a></td><td align="center"><a href="https://github.com/weyert"><img src="https://avatars3.githubusercontent.com/u/7049?v=4" width="100px;" alt="Weyert de Boer"/><br /><sub><b>Weyert de Boer</b></sub></a><br /><a href="https://github.com/testing-library/user-event/commits?author=weyert" title="Code">💻</a> <a href="https://github.com/testing-library/user-event/commits?author=weyert" title="Tests">⚠️</a></td><td align="center"><a href="https://github.com/twhitbeck"><img src="https://avatars2.githubusercontent.com/u/762471?v=4" width="100px;" alt="Tim Whitbeck"/><br /><sub><b>Tim Whitbeck</b></sub></a><br /><a href="https://github.com/testing-library/user-event/issues?q=author%3Atwhitbeck" title="Bug reports">🐛</a> <a href="https://github.com/testing-library/user-event/commits?author=twhitbeck" title="Code">💻</a></td><td align="center"><a href="https://michaeldeboey.be"><img src="https://avatars3.githubusercontent.com/u/6643991?v=4" width="100px;" alt="Michaël De Boey"/><br /><sub><b>Michaël De Boey</b></sub></a><br /><a href="https://github.com/testing-library/user-event/commits?author=MichaelDeBoey" title="Documentation">📖</a></td></tr></table>
132
145
133
146
<!-- ALL-CONTRIBUTORS-LIST:END -->
134
147
135
148
This project follows the
136
- [ all-contributors] ( https://github.com/kentcdodds /all-contributors )
149
+ [ all-contributors] ( https://github.com/all-contributors /all-contributors )
137
150
specification. Contributions of any kind welcome!
0 commit comments