-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cy.contains(content, options) syntax works, but missing in typescript declaration and not documented #4727
Comments
The typescript definition for I suggest restarting TS server in your IDE, sometimes it gets frozen? |
Yes, I reviewed the definitions file, but the exact definition I'm looking for (with two arguments: a content string, and an optional options object) isn't there. I think the params list of lines 577 and 586 should be extended as Then the documentation should add I could make a pull request, but can only do so later in the week. |
Yes, this is a valid use of I updated the docs here: cypress-io/cypress-documentation@7c1ce33 |
The code for this is done in cypress-io/cypress#4756, but has yet to be released. |
Released in |
Current behavior:
I tried
cy.contains('content', {timeout: 6000})
and it works, but my IDE is complaining that "Argument types do not match parameters". I checkedtypes/index.d.ts
and didn't find a matching declaration.I also checked the documentation and didn't find it referenced.
Desired behavior:
Just want to make this function signature official, as I happen to use it many times (and others might as well).
Versions
Cypress 3.3.2, Windows 10, Chrome 75
The text was updated successfully, but these errors were encountered: