-
Notifications
You must be signed in to change notification settings - Fork 53
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
Setting needsSameDimension flag to false isn't validating the difference of text between two locales. #114
Comments
Hi @sharath2106 I will take a look at this issue, seems like a bug to me. thank you for reporting. |
Sure, I can't recall exactly which part causes this but feel free to send a patch for fixing this. |
@sharath2106 sorry I could not find enough time to verify, send PR, we will have it tested and make a new release. |
Hi @puneet0191 . I feel the issue is not because of the
Not sure how |
@puneet0191 Also, ignoredBox is not taking the precedence over sameDimensions - |
We are using
codeceptjs-resemblehelper
to perform visual regression testing for our application that supports multiple locales. We are logging in with users mapped to these locales to achieve this.Since our page is dynamic and it contains data. We are using
I.seeVisualDiffForElement
method and find the diff only for the elements that are static in the application. Some translations are rendering elements tad bigger than others.On executing a negative case where the user belongs to the locale
en-GB
and compares the image forfr-FR
, we see the below error -The base image is of 65 X 156 and actual image is of 62 X 156. Please use images of same dimensions so as to avoid any unexpected results.
In order to ignore image size, we used the attribute
needSameDimensions: false
. But unfortunately, after using this attribute in our tests, the screen comparison is not working. The diff is not considered, and the tests are passing even though the locale is completely different.Can you take a look at this issue?
The text was updated successfully, but these errors were encountered: