@testing-library/cypress
Advanced tools
Comparing version 4.0.4 to 4.0.5
@@ -28,3 +28,3 @@ "use strict"; | ||
const defaults = getDefaultCommandOptions(); | ||
const waitOptions = typeof lastArg === 'object' ? (0, _extends2.default)({}, defaults, lastArg) : defaults; | ||
const waitOptions = typeof lastArg === 'object' ? (0, _extends2.default)({}, defaults, {}, lastArg) : defaults; | ||
const queryImpl = _dom.queries[queryName]; | ||
@@ -31,0 +31,0 @@ |
{ | ||
"name": "@testing-library/cypress", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"description": "Simple and complete custom Cypress commands and utilities that encourage good testing practices.", | ||
@@ -52,7 +52,7 @@ "main": "dist/index.js", | ||
"@babel/runtime": "^7.4.5", | ||
"@testing-library/dom": "^5.0.1" | ||
"@testing-library/dom": "^5.6.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jquery": "*", | ||
"cypress": "3.3.1", | ||
"cypress": "3.4.0", | ||
"dtslint": "^0.7.1", | ||
@@ -59,0 +59,0 @@ "kcd-scripts": "^1.2.2", |
@@ -28,3 +28,3 @@ <div align="center"> | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-16-orange.svg?style=flat-square)](#contributors) | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-19-orange.svg?style=flat-square)](#contributors) | ||
[![PRs Welcome][prs-badge]][prs] [![Code of Conduct][coc-badge]][coc] | ||
@@ -62,3 +62,3 @@ | ||
- [Installation](#installation) | ||
- [With typescript](#with-typescript) | ||
- [With TypeScript](#with-typescript) | ||
- [Usage](#usage) | ||
@@ -80,3 +80,3 @@ - [Other Solutions](#other-solutions) | ||
### With typescript | ||
### With TypeScript | ||
@@ -154,3 +154,29 @@ Typings are defined under `@testing-library/cypress/typings`, and should be | ||
<!-- prettier-ignore --> | ||
<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><td align="center"><a href="https://brian.ng"><img src="https://avatars3.githubusercontent.com/u/56288?v=4" width="100px;" alt="Brian Ng"/><br /><sub><b>Brian Ng</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=existentialism" title="Code">💻</a></td><td align="center"><a href="https://karilaari.fi"><img src="https://avatars2.githubusercontent.com/u/2477131?v=4" width="100px;" alt="Kari Laari"/><br /><sub><b>Kari Laari</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=klaari" title="Documentation">📖</a></td><td align="center"><a href="https://github.com/ppi-buck"><img src="https://avatars2.githubusercontent.com/u/37330764?v=4" width="100px;" alt="Basti Buck"/><br /><sub><b>Basti Buck</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=ppi-buck" title="Code">💻</a></td><td align="center"><a href="https://github.com/ShimiTheFirst"><img src="https://avatars2.githubusercontent.com/u/25421369?v=4" width="100px;" alt="ShimiTheFirst"/><br /><sub><b>ShimiTheFirst</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/issues?q=author%3AShimiTheFirst" title="Bug reports">🐛</a></td></tr><tr><td align="center"><a href="https://github.com/omerose"><img src="https://avatars2.githubusercontent.com/u/9358542?v=4" width="100px;" alt="omerose"/><br /><sub><b>omerose</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=omerose" title="Documentation">📖</a></td><td align="center"><a href="http://www.aaronmcadam.com"><img src="https://avatars3.githubusercontent.com/u/37928?v=4" width="100px;" alt="Aaron Mc Adam"/><br /><sub><b>Aaron Mc Adam</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=aaronmcadam" title="Code">💻</a> <a href="https://github.com/testing-library/cypress-testing-library/commits?author=aaronmcadam" title="Tests">⚠️</a></td></tr></table> | ||
<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> | ||
<td align="center"><a href="https://brian.ng"><img src="https://avatars3.githubusercontent.com/u/56288?v=4" width="100px;" alt="Brian Ng"/><br /><sub><b>Brian Ng</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=existentialism" title="Code">💻</a></td> | ||
<td align="center"><a href="https://karilaari.fi"><img src="https://avatars2.githubusercontent.com/u/2477131?v=4" width="100px;" alt="Kari Laari"/><br /><sub><b>Kari Laari</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=klaari" title="Documentation">📖</a></td> | ||
<td align="center"><a href="https://github.com/ppi-buck"><img src="https://avatars2.githubusercontent.com/u/37330764?v=4" width="100px;" alt="Basti Buck"/><br /><sub><b>Basti Buck</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=ppi-buck" title="Code">💻</a></td> | ||
<td align="center"><a href="https://github.com/ShimiTheFirst"><img src="https://avatars2.githubusercontent.com/u/25421369?v=4" width="100px;" alt="ShimiTheFirst"/><br /><sub><b>ShimiTheFirst</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/issues?q=author%3AShimiTheFirst" title="Bug reports">🐛</a></td> | ||
</tr> | ||
<tr> | ||
<td align="center"><a href="https://github.com/omerose"><img src="https://avatars2.githubusercontent.com/u/9358542?v=4" width="100px;" alt="omerose"/><br /><sub><b>omerose</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=omerose" title="Documentation">📖</a></td> | ||
<td align="center"><a href="http://www.aaronmcadam.com"><img src="https://avatars3.githubusercontent.com/u/37928?v=4" width="100px;" alt="Aaron Mc Adam"/><br /><sub><b>Aaron Mc Adam</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=aaronmcadam" title="Code">💻</a> <a href="https://github.com/testing-library/cypress-testing-library/commits?author=aaronmcadam" title="Tests">⚠️</a></td> | ||
<td align="center"><a href="https://twitter.com/karlhorky"><img src="https://avatars2.githubusercontent.com/u/1935696?v=4" width="100px;" alt="Karl Horky"/><br /><sub><b>Karl Horky</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=karlhorky" title="Documentation">📖</a></td> | ||
<td align="center"><a href="https://twitter.com/NoriSte"><img src="https://avatars0.githubusercontent.com/u/173663?v=4" width="100px;" alt="Stefano Magni"/><br /><sub><b>Stefano Magni</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=NoriSte" title="Code">💻</a> <a href="https://github.com/testing-library/cypress-testing-library/commits?author=NoriSte" title="Tests">⚠️</a> <a href="https://github.com/testing-library/cypress-testing-library/commits?author=NoriSte" title="Documentation">📖</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/cypress-testing-library/commits?author=weyert" title="Code">💻</a></td> | ||
</tr> | ||
</table> | ||
@@ -157,0 +183,0 @@ <!-- ALL-CONTRIBUTORS-LIST:END --> |
// TypeScript Version: 2.8 | ||
import { | ||
SelectorMatcherOptions as DTLSelectorMatcherOptions, | ||
Matcher, | ||
MatcherOptions as DTLMatcherOptions, | ||
getByTestId, | ||
} from '@testing-library/dom' | ||
import { Matcher, MatcherOptions as DTLMatcherOptions, SelectorMatcherOptions as DTLSelectorMatcherOptions } from '@testing-library/dom'; | ||
@@ -156,7 +151,7 @@ export interface CTLMatcherOptions { | ||
options?: MatcherOptions, | ||
): Chainable<E> | ||
): Chainable<JQuery<E>> | ||
getBySelectText<K extends keyof HTMLElementTagNameMap>( | ||
id: Matcher, | ||
options?: MatcherOptions, | ||
): Chainable<HTMLElementTagNameMap[K]> | ||
): Chainable<JQuery<HTMLElementTagNameMap[K]>> | ||
@@ -237,7 +232,7 @@ /** | ||
options?: SelectorMatcherOptions, | ||
): Chainable<E> | ||
): Chainable<JQuery<E>> | ||
getByText<K extends keyof HTMLElementTagNameMap>( | ||
id: Matcher, | ||
options?: SelectorMatcherOptions, | ||
): Chainable<HTMLElementTagNameMap[K]> | ||
): Chainable<JQuery<HTMLElementTagNameMap[K]>> | ||
@@ -318,7 +313,7 @@ /** | ||
options?: SelectorMatcherOptions, | ||
): Chainable<E> | ||
): Chainable<JQuery<E>> | ||
getByLabelText<K extends keyof HTMLElementTagNameMap>( | ||
id: Matcher, | ||
options?: SelectorMatcherOptions, | ||
): Chainable<HTMLElementTagNameMap[K]> | ||
): Chainable<JQuery<HTMLElementTagNameMap[K]>> | ||
@@ -399,7 +394,7 @@ /** | ||
options?: MatcherOptions, | ||
): Chainable<E> | ||
): Chainable<JQuery<E>> | ||
getByAltText<K extends keyof HTMLElementTagNameMap>( | ||
id: Matcher, | ||
options?: MatcherOptions, | ||
): Chainable<HTMLElementTagNameMap[K]> | ||
): Chainable<JQuery<HTMLElementTagNameMap[K]>> | ||
@@ -480,7 +475,7 @@ /** | ||
options?: MatcherOptions, | ||
): Chainable<E> | ||
): Chainable<JQuery<E>> | ||
getByTestId<K extends keyof HTMLElementTagNameMap>( | ||
id: Matcher, | ||
options?: MatcherOptions, | ||
): Chainable<HTMLElementTagNameMap[K]> | ||
): Chainable<JQuery<HTMLElementTagNameMap[K]>> | ||
@@ -561,7 +556,7 @@ /** | ||
options?: MatcherOptions, | ||
): Chainable<E> | ||
): Chainable<JQuery<E>> | ||
getByTitle<K extends keyof HTMLElementTagNameMap>( | ||
id: Matcher, | ||
options?: MatcherOptions, | ||
): Chainable<HTMLElementTagNameMap[K]> | ||
): Chainable<JQuery<HTMLElementTagNameMap[K]>> | ||
@@ -642,7 +637,7 @@ /** | ||
options?: MatcherOptions, | ||
): Chainable<E> | ||
): Chainable<JQuery<E>> | ||
getByDisplayValue<K extends keyof HTMLElementTagNameMap>( | ||
id: Matcher, | ||
options?: MatcherOptions, | ||
): Chainable<HTMLElementTagNameMap[K]> | ||
): Chainable<JQuery<HTMLElementTagNameMap[K]>> | ||
@@ -723,7 +718,7 @@ /** | ||
options?: MatcherOptions, | ||
): Chainable<E> | ||
): Chainable<JQuery<E>> | ||
getByRole<K extends keyof HTMLElementTagNameMap>( | ||
id: Matcher, | ||
options?: MatcherOptions, | ||
): Chainable<HTMLElementTagNameMap[K]> | ||
): Chainable<JQuery<HTMLElementTagNameMap[K]>> | ||
@@ -730,0 +725,0 @@ /** |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
55137
229
11
817
2
Updated@testing-library/dom@^5.6.0