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

Chainer descendants not found #642

Closed
dkln opened this issue Sep 13, 2017 · 8 comments
Closed

Chainer descendants not found #642

dkln opened this issue Sep 13, 2017 · 8 comments
Assignees
Milestone

Comments

@dkln
Copy link

dkln commented Sep 13, 2017

Is this a Feature or Bug?

Bug

Current behavior:

Spits out error

CypressError: The chainer: 'descendants' was not found. Could not build assertion.

How to reproduce:

Add a spec with:

.should("have.descendants", ".some-selector")

Test code:

.should("have.descendants", ".some-selector")
@dkln
Copy link
Author

dkln commented Sep 13, 2017

Hopefully this is enough information for you guys! Seems to be broken in version 0.20.0.

@jennifer-shehane
Copy link
Member

I believe this is due to a typo. The chainer is spelled 'descendents' with all vowels being 'e's. The error could definitely be more helpful though.

@dkln
Copy link
Author

dkln commented Sep 13, 2017

Ah! Thanks! By the way, the documentation currently states this, I guess this should also be updated there 😃

screen shot 2017-09-13 at 14 51 15

See -> https://docs.cypress.io/guides/references/assertions.html#Chai-jQuery

@dkln
Copy link
Author

dkln commented Sep 13, 2017

Before I forget: this used to work in version 0.19.x

@brian-mann
Copy link
Member

We rewrote chai-jquery in 0.20.0 and during that time we misspelled the word. It works right now as descendents but we'll update this to the proper spelling and get it out in the next patch release.

Perhaps we could do a levenshtein check to do the "Did you mean '...' suggestion

@brian-mann
Copy link
Member

The code for this is merged, but it has not been released yet.

@jennifer-shehane
Copy link
Member

Documentation typo fixed: cypress-io/cypress-documentation#77

@brian-mann
Copy link
Member

Fixed in 0.20.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants