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

(bug) Cypress-image-snapshot makes the cut image #201

Open
cosminmois opened this issue Sep 3, 2021 · 0 comments
Open

(bug) Cypress-image-snapshot makes the cut image #201

cosminmois opened this issue Sep 3, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@cosminmois
Copy link

Describe the bug
I want to snapshot an element from the page. When I run the script with the command “npx cypress open” and select the script which I want to run, the image of the element is whole, but when I run the script with the command “npm run cy: dashboard” (It’s the command which runs all the scripts on the dashboard), the image is cut.

To Reproduce

Steps to reproduce the behavior:
For the “npx cypress open” command:

  1. Run npx cypress open
  2. Click a spec file
  3. See the image
    For the “npm run cy:dashboard”:
  4. Run npm run cy:dashboard
  5. See the image

Actual result
For the “npx cypress open” command:

  • The image is whole.
    For the “npm run cy:dashboard”:
  • The image is cut.

Expected result
The images from those two runs should be whole.

The whole image:
whole_image

The cut image:
cut_image

@cosminmois cosminmois added the bug Something isn't working label Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants