-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
rightclick: wrong description in index.d.ts? #5617
Comments
warpdesign
added a commit
to warpdesign/cypress
that referenced
this issue
Nov 7, 2019
These two call signatures where missing for rightclick and dblclick: only the `rightclick(options?: Partial<ClickOptions>): Chainable<Subject> ` one was present. See cypress-io#5617
4 tasks
jennifer-shehane
pushed a commit
that referenced
this issue
Nov 7, 2019
* ADDED: missing call signatures for right/dblclick These two call signatures where missing for rightclick and dblclick: only the `rightclick(options?: Partial<ClickOptions>): Chainable<Subject> ` one was present. See #5617 * FIXED: typo * FIXED: dtslint errors
The code for this is done in cypress-io/cypress#5618, but has yet to be released. |
Released in |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current behavior:
According to the documentation, one of the
cy.rightclick
call signature should berightclick(position, options?)
but when attempting to use this version of the call, TypeScript returns an error:Looking at the
index.d.ts
file, it seems rightclick's definition only has one signature, the one with the options object:The click method has two additional call signatures, so calling
cy.click('topLeft')
will work as expected:Desired behavior:
All three call types should be present in the index.d.ts file for rightclick so that this call is valid from TypeScript:
I made a PR adding the missing call signatures.
Versions
Cypress 3.6.0
macOS Catalina
Chrome 78
The text was updated successfully, but these errors were encountered: