2
2
<h1 >cypress-testing-library</h1 >
3
3
4
4
<a href =" https://www.emojione.com/emoji/1f405 " >
5
- <img height =" 80 " width =" 80 " alt =" tiger " src =" https://raw.githubusercontent.com/kentcdodds/cypress-testing-library/master/other/tiger.png " />
5
+ <img
6
+ height="80"
7
+ width="80"
8
+ alt="tiger"
9
+ src="https://raw.githubusercontent.com/testing-library/cypress-testing-library/master/other/tiger.png "
10
+ />
6
11
</a >
7
12
8
- <p >Simple and complete custom Cypress commands and utilities that encourage good testing practices.</p >
13
+ <p >Simple and complete custom Cypress commands and utilities that encourage good
14
+ testing practices.</p >
9
15
10
16
[ ** Read the docs** ] ( https://testing-library.com/cypress ) |
11
17
[ Edit the docs] ( https://github.com/alexkrolick/testing-library-docs )
27
33
[ ![ Tweet] [ twitter-badge ]] [ twitter ]
28
34
29
35
<div align =" center " >
30
- <a href =" https://testingjavascript.com " >
31
- <img width =" 500 " alt =" TestingJavaScript.com Learn the smart, efficient way to test any JavaScript application. " src =" https://raw.githubusercontent.com/kentcdodds/cypress-testing-library/master/other/testingjavascript.jpg " />
32
- </a >
36
+ <a href =" https://testingjavascript.com " >
37
+ <img
38
+ width="500"
39
+ alt="TestingJavaScript.com Learn the smart, efficient way to test any JavaScript application."
40
+ src="https://raw.githubusercontent.com/testing-library/cypress-testing-library/master/other/testingjavascript.jpg"
41
+ />
42
+ </a >
33
43
</div >
34
44
35
45
## The problem
@@ -62,18 +72,18 @@ This module is distributed via [npm][npm] which is bundled with [node][node] and
62
72
should be installed as one of your project's ` devDependencies ` :
63
73
64
74
```
65
- npm install --save-dev cypress- testing-library
75
+ npm install --save-dev @ testing-library/cypress
66
76
```
67
77
68
78
### With typescript
69
79
70
- Typings are defined under ` cypress- testing-library/typings` , and should be added
71
- as follows in ` tsconfig.json ` :
80
+ Typings are defined under ` @ testing-library/cypress/ typings` , and should be
81
+ added as follows in ` tsconfig.json ` :
72
82
73
83
``` json
74
84
{
75
85
"compilerOptions" : {
76
- "types" : [" cypress" , " ../cypress- testing-library/typings" ]
86
+ "types" : [" cypress" , " ../@ testing-library/cypress /typings" ]
77
87
}
78
88
}
79
89
```
@@ -90,7 +100,7 @@ import 'cypress-testing-library/add-commands';
90
100
91
101
You can now use all of ` dom-testing-library ` 's ` getBy ` , ` getAllBy ` , ` queryBy `
92
102
and ` queryAllBy ` commands.
93
- [ See ` dom-testing-library ` repo for reference] ( https://github.com/kentcdodds/dom- testing-library#usage )
103
+ [ See the ` dom-testing-library ` docs for reference] ( https://testing-library.com )
94
104
95
105
To show some simple examples (from
96
106
[ cypress/integration/commands.spec.js] ( cypress/integration/commands.spec.js ) ):
@@ -125,9 +135,7 @@ Thanks goes to these people ([emoji key][emojis]):
125
135
126
136
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
127
137
<!-- prettier-ignore -->
128
- | [<img src="https://avatars.githubusercontent.com/u/1500684?v=3" width="100px;"/><br /><sub><b>Kent C. Dodds</b></sub>](https://kentcdodds.com)<br />[💻](https://github.com/kentcdodds/cypress-testing-library/commits?author=kentcdodds "Code") [📖](https://github.com/kentcdodds/cypress-testing-library/commits?author=kentcdodds "Documentation") [🚇](#infra-kentcdodds "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/kentcdodds/cypress-testing-library/commits?author=kentcdodds "Tests") | [<img src="https://avatars2.githubusercontent.com/u/498274?v=4" width="100px;"/><br /><sub><b>Ivan Babak</b></sub>](https://sompylasar.github.io)<br />[💻](https://github.com/kentcdodds/cypress-testing-library/commits?author=sompylasar "Code") [🤔](#ideas-sompylasar "Ideas, Planning, & Feedback") | [<img src="https://avatars1.githubusercontent.com/u/4002543?v=4" width="100px;"/><br /><sub><b>Łukasz Gandecki</b></sub>](http://team.thebrain.pro)<br />[💻](https://github.com/kentcdodds/cypress-testing-library/commits?author=lgandecki "Code") [⚠️](https://github.com/kentcdodds/cypress-testing-library/commits?author=lgandecki "Tests") | [<img src="https://avatars1.githubusercontent.com/u/25429764?v=4" width="100px;"/><br /><sub><b>Peter Kamps</b></sub>](https://github.com/npeterkamps)<br />[💻](https://github.com/kentcdodds/cypress-testing-library/commits?author=npeterkamps "Code") [📖](https://github.com/kentcdodds/cypress-testing-library/commits?author=npeterkamps "Documentation") [🤔](#ideas-npeterkamps "Ideas, Planning, & Feedback") [⚠️](https://github.com/kentcdodds/cypress-testing-library/commits?author=npeterkamps "Tests") | [<img src="https://avatars3.githubusercontent.com/u/4506749?v=4" width="100px;"/><br /><sub><b>Airat Aminev</b></sub>](https://github.com/airato)<br />[💻](https://github.com/kentcdodds/cypress-testing-library/commits?author=airato "Code") [⚠️](https://github.com/kentcdodds/cypress-testing-library/commits?author=airato "Tests") [🔧](#tool-airato "Tools") | [<img src="https://avatars0.githubusercontent.com/u/5121148?v=4" width="100px;"/><br /><sub><b>Adrian Smijulj</b></sub>](https://www.webiny.com)<br />[💻](https://github.com/kentcdodds/cypress-testing-library/commits?author=adrian1358 "Code") | [<img src="https://avatars0.githubusercontent.com/u/12230408?v=4" width="100px;"/><br /><sub><b>Soo Jae Hwang</b></sub>](https://www.ossfinder.com)<br />[🐛](https://github.com/kentcdodds/cypress-testing-library/issues?q=author%3Amisoguy "Bug reports") [💻](https://github.com/kentcdodds/cypress-testing-library/commits?author=misoguy "Code") [⚠️](https://github.com/kentcdodds/cypress-testing-library/commits?author=misoguy "Tests") |
129
- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
130
- | [ <img src =" https://avatars1.githubusercontent.com/u/1288694?v=4 " width =" 100px; " /><br /><sub ><b >Justin Hall</b ></sub >] ( https://github.com/wKovacs64 ) <br />[ 💻] ( https://github.com/kentcdodds/cypress-testing-library/commits?author=wKovacs64 " Code ") [ ⚠️] ( https://github.com/kentcdodds/cypress-testing-library/commits?author=wKovacs64 " Tests ") | [ <img src =" https://avatars3.githubusercontent.com/u/9463809?v=4 " width =" 100px; " /><br /><sub ><b >euzebe</b ></sub >] ( https://github.com/euZebe ) <br />[ 📖] ( https://github.com/kentcdodds/cypress-testing-library/commits?author=euZebe " Documentation ") | [ <img src =" https://avatars0.githubusercontent.com/u/19804196?v=4 " width =" 100px; " /><br /><sub ><b >jkdowdle</b ></sub >] ( https://github.com/jkdowdle ) <br />[ 💻] ( https://github.com/kentcdodds/cypress-testing-library/commits?author=jkdowdle " Code ") |
138
+ <table><tr><td align="center"><a href="https://kentcdodds.com"><img src="https://avatars.githubusercontent.com/u/1500684?v=3" width="100px;" alt="Kent C. Dodds"/><br /><sub><b>Kent C. Dodds</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=kentcdodds" title="Code">💻</a> <a href="https://github.com/testing-library/cypress-testing-library/commits?author=kentcdodds" title="Documentation">📖</a> <a href="#infra-kentcdodds" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/testing-library/cypress-testing-library/commits?author=kentcdodds" title="Tests">⚠️</a></td><td align="center"><a href="https://sompylasar.github.io"><img src="https://avatars2.githubusercontent.com/u/498274?v=4" width="100px;" alt="Ivan Babak"/><br /><sub><b>Ivan Babak</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=sompylasar" title="Code">💻</a> <a href="#ideas-sompylasar" title="Ideas, Planning, & Feedback">🤔</a></td><td align="center"><a href="http://team.thebrain.pro"><img src="https://avatars1.githubusercontent.com/u/4002543?v=4" width="100px;" alt="Łukasz Gandecki"/><br /><sub><b>Łukasz Gandecki</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=lgandecki" title="Code">💻</a> <a href="https://github.com/testing-library/cypress-testing-library/commits?author=lgandecki" title="Tests">⚠️</a></td><td align="center"><a href="https://github.com/npeterkamps"><img src="https://avatars1.githubusercontent.com/u/25429764?v=4" width="100px;" alt="Peter Kamps"/><br /><sub><b>Peter Kamps</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=npeterkamps" title="Code">💻</a> <a href="https://github.com/testing-library/cypress-testing-library/commits?author=npeterkamps" title="Documentation">📖</a> <a href="#ideas-npeterkamps" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/testing-library/cypress-testing-library/commits?author=npeterkamps" title="Tests">⚠️</a></td><td align="center"><a href="https://github.com/airato"><img src="https://avatars3.githubusercontent.com/u/4506749?v=4" width="100px;" alt="Airat Aminev"/><br /><sub><b>Airat Aminev</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=airato" title="Code">💻</a> <a href="https://github.com/testing-library/cypress-testing-library/commits?author=airato" title="Tests">⚠️</a> <a href="#tool-airato" title="Tools">🔧</a></td><td align="center"><a href="https://www.webiny.com"><img src="https://avatars0.githubusercontent.com/u/5121148?v=4" width="100px;" alt="Adrian Smijulj"/><br /><sub><b>Adrian Smijulj</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=adrian1358" title="Code">💻</a></td><td align="center"><a href="https://www.ossfinder.com"><img src="https://avatars0.githubusercontent.com/u/12230408?v=4" width="100px;" alt="Soo Jae Hwang"/><br /><sub><b>Soo Jae Hwang</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/issues?q=author%3Amisoguy" title="Bug reports">🐛</a> <a href="https://github.com/testing-library/cypress-testing-library/commits?author=misoguy" title="Code">💻</a> <a href="https://github.com/testing-library/cypress-testing-library/commits?author=misoguy" title="Tests">⚠️</a></td></tr><tr><td align="center"><a href="https://github.com/wKovacs64"><img src="https://avatars1.githubusercontent.com/u/1288694?v=4" width="100px;" alt="Justin Hall"/><br /><sub><b>Justin Hall</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=wKovacs64" title="Code">💻</a> <a href="https://github.com/testing-library/cypress-testing-library/commits?author=wKovacs64" title="Tests">⚠️</a></td><td align="center"><a href="https://github.com/euZebe"><img src="https://avatars3.githubusercontent.com/u/9463809?v=4" width="100px;" alt="euzebe"/><br /><sub><b>euzebe</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=euZebe" title="Documentation">📖</a></td><td align="center"><a href="https://github.com/jkdowdle"><img src="https://avatars0.githubusercontent.com/u/19804196?v=4" width="100px;" alt="jkdowdle"/><br /><sub><b>jkdowdle</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=jkdowdle" title="Code">💻</a></td></tr></table>
131
139
132
140
<!-- ALL-CONTRIBUTORS-LIST:END -->
133
141
@@ -141,41 +149,41 @@ MIT
141
149
[ npm ] : https://www.npmjs.com/
142
150
[ node ] : https://nodejs.org
143
151
[ build-badge] :
144
- https://img.shields.io/travis/kentcdodds /cypress-testing-library.svg?style=flat-square
145
- [ build ] : https://travis-ci.org/kentcdodds /cypress-testing-library
152
+ https://img.shields.io/travis/testing-library /cypress-testing-library.svg?style=flat-square
153
+ [ build ] : https://travis-ci.org/testing-library /cypress-testing-library
146
154
[ coverage-badge] :
147
- https://img.shields.io/codecov/c/github/kentcdodds /cypress-testing-library.svg?style=flat-square
148
- [ coverage ] : https://codecov.io/github/kentcdodds /cypress-testing-library
155
+ https://img.shields.io/codecov/c/github/testing-library /cypress-testing-library.svg?style=flat-square
156
+ [ coverage ] : https://codecov.io/github/testing-library /cypress-testing-library
149
157
[ version-badge] :
150
158
https://img.shields.io/npm/v/cypress-testing-library.svg?style=flat-square
151
- [ package ] : https://www.npmjs.com/package/cypress- testing-library
159
+ [ package ] : https://www.npmjs.com/package/@ testing-library/cypress
152
160
[ downloads-badge] :
153
- https://img.shields.io/npm/dm/cypress- testing-library.svg?style=flat-square
154
- [ npmtrends ] : http://www.npmtrends.com/cypress- testing-library
161
+ https://img.shields.io/npm/dm/@ testing-library/cypress .svg?style=flat-square
162
+ [ npmtrends ] : http://www.npmtrends.com/@ testing-library/cypress
155
163
[ license-badge] :
156
- https://img.shields.io/npm/l/cypress- testing-library.svg?style=flat-square
164
+ https://img.shields.io/npm/l/@ testing-library/cypress .svg?style=flat-square
157
165
[ license] :
158
- https://github.com/kentcdodds /cypress-testing-library/blob/master/LICENSE
166
+ https://github.com/testing-library /cypress-testing-library/blob/master/LICENSE
159
167
[ prs-badge] :
160
168
https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
161
169
[ prs ] : http://makeapullrequest.com
162
- [ donate-badge] :
163
- https://img.shields.io/badge/$-support-green.svg?style=flat-square
164
170
[ coc-badge] :
165
171
https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
166
172
[ coc] :
167
- https://github.com/kentcdodds /cypress-testing-library/blob/master/other/CODE_OF_CONDUCT.md
173
+ https://github.com/testing-library /cypress-testing-library/blob/master/other/CODE_OF_CONDUCT.md
168
174
[ github-watch-badge] :
169
- https://img.shields.io/github/watchers/kentcdodds/cypress-testing-library.svg?style=social
170
- [ github-watch ] : https://github.com/kentcdodds/cypress-testing-library/watchers
175
+ https://img.shields.io/github/watchers/testing-library/cypress-testing-library.svg?style=social
176
+ [ github-watch] :
177
+ https://github.com/testing-library/cypress-testing-library/watchers
171
178
[ github-star-badge] :
172
- https://img.shields.io/github/stars/kentcdodds/cypress-testing-library.svg?style=social
173
- [ github-star ] : https://github.com/kentcdodds/cypress-testing-library/stargazers
179
+ https://img.shields.io/github/stars/testing-library/cypress-testing-library.svg?style=social
180
+ [ github-star] :
181
+ https://github.com/testing-library/cypress-testing-library/stargazers
174
182
[ twitter] :
175
183
https://twitter.com/intent/tweet?text=Check%20out%20cypress-testing-library%20by%20%40kentcdodds%20https%3A%2F%2Fgithub.com%2Fkentcdodds%2Fcypress-testing-library%20%F0%9F%91%8D
176
184
[ twitter-badge] :
177
- https://img.shields.io/twitter/url/https/github.com/kentcdodds /cypress-testing-library.svg?style=social
185
+ https://img.shields.io/twitter/url/https/github.com/testing-library /cypress-testing-library.svg?style=social
178
186
[ emojis ] : https://github.com/kentcdodds/all-contributors#emoji-key
179
187
[ all-contributors ] : https://github.com/kentcdodds/all-contributors
180
- [ dom-testing-library ] : https://github.com/kentcdodds /dom-testing-library
188
+ [ dom-testing-library ] : https://github.com/testing-library /dom-testing-library
181
189
[ cypress ] : https://www.cypress.io/
0 commit comments