- 
                Notifications
    
You must be signed in to change notification settings  - Fork 3.4k
 
Closed
Labels
topic: typescripttype: regressionA bug that didn't appear until a specific Cy version releaseA bug that didn't appear until a specific Cy version releasev4.4.0 🐛Issue present since 4.4.0Issue present since 4.4.0
Description
Current behavior:
I am using Cypress on an Angular application.
The following test is working on version 3.8.3
it('cy.get() - query DOM elements', () => {
  let x = [...Array(100).keys()].map(x => x + "");
  cy.server().route('/test', x);
  cy.get('[data-cy=landmark]').invoke('text').should('contain', 'Welcome');
})but throws an error on 4.4.1
TypeError: Array(...).keys(...).slice is not a function
    at Context.<anonymous> (http://localhost:4200/__cypress/tests?p=cypress/integration/examples/querying.spec.js-628:8:35)
Test code to reproduce
Repository demonstrating the problem: https://github.com/Kimserey/cypress-test-issue
- branch 
masteris 3.8.3 - branch 
upgrade-4is 4.4.1 
- From the root directory, run 
ng serve, - From the root directory, start cypress 
npx cypress open, - The only test in the integration specs will throw the TypeError.
 
Versions
Cypress 4.4.1
Metadata
Metadata
Assignees
Labels
topic: typescripttype: regressionA bug that didn't appear until a specific Cy version releaseA bug that didn't appear until a specific Cy version releasev4.4.0 🐛Issue present since 4.4.0Issue present since 4.4.0