-
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
instanceOf(Array) assertion fails unexpectedly #2913
Comments
According to
Would this be the cause? |
would still be nice though to have this mentioned somewhere in docs |
Current behavior:
Working off of one of the official examples:
https://github.com/cypress-io/cypress-example-api-testing/blob/master/cypress/integration/example_spec.js#L52-L56
if I replace this section with:
this yields this failure:
AssertionError: expected [ Array(2) ] to be an instance of Array
Desired behavior:
Should pass since it indeed it is an
Array
Steps to reproduce: (app code and test code)
npm i
,npm start
, andnpm run cy:open
example_spec.js
test from Cypress uiVersions
cypress: 3.0.1
os: Windows 10
browser: Chrome 70
The text was updated successfully, but these errors were encountered: