-
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
Cypress Document function typing is incorrect #17695
Comments
Thanks for pointing this out. It does indeed accept both of those options. We would be open to reviewing a PR with this update. |
Will do |
The code for this is done, but this has yet to be released. We'll update this issue and reference the changelog when it's released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
The
cy.document
function has the wrong typings for typescript.In the docs it specifies
timeout
as a valid property, however it only has thelog
option specified.https://docs.cypress.io/api/commands/document#Usage
Desired behavior
The type file should specify it to be timeoutable:
Test code to reproduce
Cypress Version
8.0.0
Other
Temporary workaround:
Create the following file:
./src/@types/cypress.d.ts
With the content:
The text was updated successfully, but these errors were encountered: