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

Unable to use nested property in Cypress #3080

Closed
songty opened this issue Jan 7, 2019 · 3 comments
Closed

Unable to use nested property in Cypress #3080

songty opened this issue Jan 7, 2019 · 3 comments

Comments

@songty
Copy link

songty commented Jan 7, 2019

Current behavior:

The chai version in launched browser does not match the example given in Cypress docs.
I tried using .nested and it is throwing undefined type error.

image

A version bump should fix this issue

Desired behavior:

Update chai version to the latest to match current docs

Steps to reproduce: (app code and test code)

Run expect({a: {b: ['x', 'y']}}).to.have.nested.property('a.b[1]') in a browser test

Versions

3.1.4

@jennifer-shehane
Copy link
Member

Duplicate of #2529 - will be released in 4.0 of Cypress

@jennifer-shehane jennifer-shehane added the type: duplicate This issue or pull request already exists label Jan 8, 2019
@jennifer-shehane
Copy link
Member

I've confirmed that this works in upcoming 4.0 release. 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.

Screen Shot 2020-01-29 at 3 47 50 PM

@jennifer-shehane jennifer-shehane added stage: pending release and removed type: duplicate This issue or pull request already exists labels Jan 29, 2020
@jennifer-shehane jennifer-shehane changed the title Mismatched Chai version Unable to use nested property in Cypress Jan 29, 2020
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Feb 6, 2020

Released in 4.0.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v4.0.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Feb 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants