-
Notifications
You must be signed in to change notification settings - Fork 15
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
Feature/layout check improvement #314
Conversation
|
||
A layout test with the Testerra utilities is actually a comparison between a reference and the actual state. This is done via the screenshot functionality of Selenium, in which both screenshots (reference and actual) are compared pixel by pixel from top to bottom. In this comparison, a third image is created in which differences (ReferencePixel != ActualPixel) are marked in red. | ||
|
||
In case that one image is a different size than the other an <<#_optional_assertions, Optional assertion>> fails, so that an error with the information about the different sizes is displayed in the report but the Layout test will still be fully executed. Testerra then considers only the common pixels of both images as 100%. Pixels that are outside of one or the other image are not included in the error calculation. In the comparison, those Pixels are marked in blue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: ... that one image [has] a different size...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to shorten that chapter:
... than the other [Testerra reports this as an <<#_optional_assertions, optional assertion>>. Testerra considers only the common]...
Description
This PR contains changes to the error claculation of the layout check feature and some changes to the layout check section of current documentation.
Type of change
Please delete options that are not relevant.
Checklist: