-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
expect().to.be.ordered.members() throw an error "TypeError: Cannot read property 'members' of undefined" #4017
Comments
The Closing this issue as duplicate of #2529 |
Yeah, I'm aware of the duplicated old issue, thought it got fixed already because it was closed, guess I was wrong. |
Issues are closed when the PR has been merged into develop, but not necessarily released. These issues have a |
I didn't see any |
@Bigdragon13th 😅This is true. We've automated the process of tagging and commenting recently, so more recently closed issues should do this. Looks like we overlooked this one. |
@jennifer-shehane I'm guessing that's automatic. But it's also confusing :-( |
Hi, can we please have this misleading entry removed from the docs until 4.0 is released? Wasted an hour trying to figure out what was going on until stumbling upon this issue. |
FYI, if you are looking for a work around solution, I managed to get the test working by doing this instead: it("test array matches (order matters)", () => {
expect([0, 1]).to.deep.equal([0, 1]);
}); I was testing that a regular expression was returning the expected result values. I needed to destructure the result for that to work. it('a b test', () => {
expect([.../(a)(b)/.exec('ab')]).to.deep.equal(['ab', 'a', 'b'])
}) |
I've confirmed this is working 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. 3.8.34.0.0 |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
Whenever I try to compare array (order matters) with the command
expect(...).to.be.ordered.members(...)
, Cypress always throw an error.expect(...).ordered(...)
as shown here also failed.https://docs.cypress.io/guides/references/assertions.html#BDD-Assertions
Desired behavior:
It should works.
Steps to reproduce: (app code and test code)
This code failed.
Versions
Cypress version: 3.2.0
The text was updated successfully, but these errors were encountered: