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

Image size different when browser dev tools are open #91

Open
danvoyce opened this issue Jun 13, 2019 · 0 comments
Open

Image size different when browser dev tools are open #91

danvoyce opened this issue Jun 13, 2019 · 0 comments

Comments

@danvoyce
Copy link

I take my snapshot with a fixed viewport size:

cy.viewport(1200, 800);
cy.get('[data-cy=canvas-preview]').matchImageSnapshot();

With the dev tools closed it's fine. But when I run the test with them open it fails

Seems the dev tools is eating up some of the space...

(docked to the right)
Error: Image size (1150x1009) different than saved snapshot size (1070x1009).

(docked to the bottom)
Error: Image size (1150x1009) different than saved snapshot size (1150x655).

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

No branches or pull requests

1 participant