Closed wbigno closed 2 months ago
Doesn’t seem to resolve issue,
RangeError in "INT_NYL Accordion Expanded Visual Validation on Dektop.should compare Expanded image with a baseline Compare on Desktop"
RangeError [ERR_OUT_OF_RANGE]: The value of "size" is out of range. It must be >= 0 && <= 9007199254740991. Received -563328
at Function.allocUnsafe (node:buffer:402:3)
at Jimp.cropQuiet @./plugin-crop/dist/index.js:35:29)
at Jimp.
#################################################################################### THE RESIZE DIMENSION TOP=20 MADE THE CROPPING GO OUT OF THE SCREEN SIZE RESULTING IN A TOP CROP POSITION=-798. THIS HAS BEEN DEFAULTED TO '0' #####################################################################################
Ran the same code that I provided in the bug, and go this after upgrading to 5.2.1
On Aug 4, 2024, at 3:10 AM, Wim Selles @.***> wrote:
Closed #438 https://github.com/webdriverio/visual-testing/issues/438 as completed.
— Reply to this email directly, view it on GitHub https://github.com/webdriverio/visual-testing/issues/438#event-13753860782, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH4A4PAOJ5D7MNQQ3B2RWHDZPXHX5AVCNFSM6AAAAABLM4FOSOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTG42TGOBWGA3TQMQ. You are receiving this because you authored the thread.
@wbigno it "is" resolved see also the new error 😅 . It works on my machine now, can you provide a reproducible example because it might be related to how the element has been built and the data the module gets back from the element/page
Environment (please complete the following information):
@wdio/visual-service
version: 5.1.1Config of WebdriverIO +
@wdio/visual-service
Describe the bug when added the method, resizeDimensions to the function, it is no longer working, the additional spacing is not being added to the element being captured.
To Reproduce add this to the checkElement function
[Include code or an example repository that can easily be set up]
Expected behavior the additional pixels should be added as noted.
Log
Additional context this was working fine about 3-4 weeks back, but has recently stopped. We have tried to update to the latest versions but it did not resolve the issues. We run all of our tests on Sauce labs.