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

Cannot read property 'map' of null at parseMatrix2D #6745

Closed
shoomakov opened this issue Mar 16, 2020 · 4 comments · Fixed by #6787 or Flygsand/site#83
Closed

Cannot read property 'map' of null at parseMatrix2D #6745

shoomakov opened this issue Mar 16, 2020 · 4 comments · Fixed by #6787 or Flygsand/site#83
Assignees
Labels
type: regression A bug that didn't appear until a specific Cy version release

Comments

@shoomakov
Copy link

shoomakov commented Mar 16, 2020

Current behavior:

Trying cy.get('.selector') - fail with TypeError: Cannot read property 'map' of null

When the "vue-fragment" component is included in the project, cypress, for some reason, cannot parse

image

Test code to reproduce

I created a repository to reproduce:
https://github.com/shoomakov/cypress-issue

npm i
npm run serve

cd tests/e2e
npm i
npm run dev

Versions

Cypress v.4.0.2
Browser Chrome

@shoomakov shoomakov changed the title Cannot read property 'map' of null at matrix2D Cannot read property 'map' of null at parseMatrix2D Mar 16, 2020
@jennifer-shehane
Copy link
Member

I can recreate this. This was introduced in Cypress 3.8.2 - like by this PR #5916 cc @sainthkh

This error is being thrown here: https://github.com/cypress-io/cypress/blob/develop/packages/driver/src/dom/transform.ts#L180:L180

In this case the transform = "", which evaluates to null within transform.match(numberRegex)

One of the elements has empty strings for all these values for some reason.

Screen Shot 2020-03-17 at 3 16 35 PM

3.8.1

Incorrectly determined element as not visible.

Screen Shot 2020-03-17 at 3 05 23 PM

3.8.2

Erroring with 'Cannot read property map of null'

Screen Shot 2020-03-17 at 2 50 31 PM

@jennifer-shehane jennifer-shehane added the type: regression A bug that didn't appear until a specific Cy version release label Mar 17, 2020
@cypress-bot cypress-bot bot added the stage: ready for work The issue is reproducible and in scope label Mar 17, 2020
@sainthkh sainthkh self-assigned this Mar 17, 2020
@sainthkh
Copy link
Contributor

The cause of this problem is that vue-fragment creates a DOM element that returns empty CSSStyleDeclaration.

I'm trying to mock this behavior.

@cypress-bot cypress-bot bot added stage: work in progress stage: needs review The PR code is done & tested, needs review and removed stage: ready for work The issue is reproducible and in scope stage: work in progress stage: needs review The PR code is done & tested, needs review labels Mar 19, 2020
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Mar 25, 2020

The code for this is done in cypress-io/cypress#6787, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot cypress-bot bot removed the stage: needs review The PR code is done & tested, needs review label Mar 25, 2020
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Mar 30, 2020

Released in 4.3.0.

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

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: regression A bug that didn't appear until a specific Cy version release
Projects
None yet
3 participants