Skip to content
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.its()` should support `number` as an argument #5754

Closed
flotwig opened this issue Nov 20, 2019 · 3 comments · Fixed by #5755
Closed

`cy.its()` should support `number` as an argument #5754

flotwig opened this issue Nov 20, 2019 · 3 comments · Fixed by #5755
Assignees

Comments

@flotwig
Copy link
Member

@flotwig flotwig commented Nov 20, 2019

Current behavior:

CypressError: cy.its() only accepts a string as the first argument.

Desired behavior:

CypressError: cy.its() only accepts a string or a number as the first argument.

Steps to reproduce: (app code and test code)

cy.wrap([]).its(0)
@flotwig

This comment has been minimized.

Copy link
Member Author

@flotwig flotwig commented Nov 20, 2019

And .invoke, I suppose.

@cypress-bot

This comment has been minimized.

Copy link

@cypress-bot cypress-bot bot commented Nov 26, 2019

The code for this is done in cypress-io/cypress#5755, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot

This comment has been minimized.

Copy link

@cypress-bot cypress-bot bot commented Nov 27, 2019

Released in 3.7.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.