Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Broken screenshot for scrollable containers with overflow #217

Unanswered
patrickschroeter asked this question in Q&A
Discussion options

When using snapshots for Views which are larger than the page or are scrollable the resulting snapshot is not correct.

Does anyone has similar issues of do I only miss a configuration?

AppComponent should match snapshot #0 actual

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

Hey @patrickschroeter!

Is the image above a single screenshot made by the plugin itself?
Can you provide some simple reproduction scenario? You can example directory from this repo as a started for reproduction: https://github.com/FRSOURCE/cypress-plugin-visual-regression-diff/tree/main/example

You must be logged in to vote
2 replies
Comment options

@FRSgit Thanks for your answer. I was able to reproduce it by changing the scroll container from html to body by adding the following CSS to the App.vue in the example project has the same effect:

html {
 height: 100%;
 overflow: hidden;
}
body {
 height: 100%;
 overflow: auto;
}

Screenshot 2023年03月30日 at 10 45 24

Tested on macOS with Plugin Version 3.2.14

Comment options

@FRSgit Were you able to reproduce this issue or is it still a unique problem? Should I create an issue out of it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /