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

RangeError for screenshot only on default viewportWidth #6719

Closed
nitzanashi opened this issue Mar 13, 2020 · 2 comments
Closed

RangeError for screenshot only on default viewportWidth #6719

nitzanashi opened this issue Mar 13, 2020 · 2 comments

Comments

@nitzanashi
Copy link

nitzanashi commented Mar 13, 2020

Current behavior:

  • Taking screenshot for elements that contain css grid layout with default (1000) configuration for viewportWidth is throwing error.
RangeError: The value of "offset" is out of range. It must be >= 0 and <= 3686396. Received -4192
  RangeError [ERR_OUT_OF_RANGE] [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 3686396. Received -4192
      at boundsError (internal/buffer.js:72:9)
      at Buffer.readUInt32BE (internal/buffer.js:295:5)

image

  • This is not happening when changing the viewportWidth to other values (1001, 999 both works fine)

Desired behavior:

  • screenshot should be taken without any error been thrown

Test code to reproduce

find some grid css layout my code looks like that:

it('test', () => {
  cy.get('[data-soul=SANDBOX_TEASER_SECTION_GRID')
    .first().screenshot('test')
})

Versions

from Cypress v4, on chrome

@jennifer-shehane
Copy link
Member

Unfortunately we have to close this issue as there is not enough information to reproduce the problem. This does not mean that your issue is not happening - it just means that we do not have a path to move forward.

Please comment in this issue with the HTML code to run the above test code against in order to reproducible and we will consider reopening the issue.

@nitzanashi
Copy link
Author

duplicate of #2034

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants