This repository has been archived by the owner on Dec 24, 2023. It is now read-only.
Releases: wswebcreation/webdriver-image-comparison
Releases · wswebcreation/webdriver-image-comparison
Release 2.0.1
🐛 Bug Fix
- fix: fix types (776199c)
Release 2.0.0
💥 Breaking Change
- NodeJS 16 EOL has been brought forward with 7 months, see this post. While updating the dependencies we decided to already drop support for NodeJS 16 and only support NodeJS 18 and 20
💅 Polish
- chore: remove vulnerabilities
- chore: update dependencies
Release 1.0.3
🚀 New Features
- feat: support NodeJS 18 (3001d6a)
💅 Polish
- chore: remove vulnerabilities (3dea35c)
🐛 Bug Fix
- fix TS type for ResizeDimensions (51f7908), thanks to Bernardo Belchior
Release 1.0.2
💅 Polish
-
fix: revert to number with toFixed(3) (230ec58)
This release reverts #105 and will update the misMatchPercentage from a string back to a number. But, instead of using atoFixed(2)
it usestoFixed(3)
.
The reasons for this are:- the previous implementation with
toFixed()
converts a number into a string and we didn't transform this back to a number. This resulted in updating all tests fromtoEqual(0)
totoEqual('0.00')
which in the end also had issues with bigger or smaller than - the average screen resolution is around 1920x1080. I want this module to be able to detect at least a 10x10 pixel difference.
1920x1080 = 2073600 pixels, a difference of 10x10 is 100 which means 0.005% difference (0.00482253).
Number(0.00482253.toFixed(2))
= 0 andNumber(0.00482253.toFixed(3))
= 0.005
- the previous implementation with
-
chore: update resemble to v4.1.0 - fix tests - remove not needed code (e2dd712)
Update ResembleJS to the latest version 4.1.0
Release 1.0.1
🐛 Bug Fix
In some cases automatically scrolling an element in the view will create incorrect screenshots. By setting the class-option autoElementScroll
to false
you need to take care of your own scrolling.
For more info soo this
Release 1.0.0
💥 Breaking Change
- fix #103 : percentage returned and used for comparison (9cd1e6c), tnx to jesusfj710
Before
it('should compare a screen successful ', async () => {
await expect(await browser.checkScreen('screenshot')).toEqual(
'0'
)
})
Now
it('should compare a screen successful ', async () => {
await expect(await browser.checkScreen('screenshot')).toEqual(
'0.00'
)
})
🚀 New Features
- feat: add new iOS bezel feature (9e16c79)
A new class-option has been added which is calledaddIOSBezelCorners
. If set totrue
the iOS screenshots will have rounded corners and, if applicable, the iOS notch/dynamic island. See below for an example. Not all devices have these options and it will only be enabled if it matches certain device names. See here for all supported devices
💅 Polish
- feat: add offsets for iPhone 14 series (2773091)
- fix: lint for other files (953d0b1)
- feat: support NodeJS 18 (18fa78c)
- feat: replace chalk (981aebd)
🐛 Bug Fix
- #119 Prevent tsconfig.json from being published which causes a problem with the 'includes' field (752b331), tnx to
Luis Merino - fix: fix positions (a326079)
Release 0.22.0
- Merge pull request #112 from wswebcreation/fix/fix-ios-safe-area (680799c)
- feat: autoscroll elements to the top and back (c42e498)
- fix: fix safearea for XSMax|XR|11|11ProMax iOS 13 (6a7f144)
- fix: fix iPhone XSMax|XR|11|11ProMax iOS 13 status bar height (30c6edf)
- fix: ipad pro 12.9 first generation remove home bar blockout (e87a714)
- feat: add blockOutSideBar for iPads in landscape mode (cda83e7)
- fix: fix landscape auto blockout (1c3bf3f)
- fix: fix iOS 13 landscape for rotated images (7978001)
- feat: add rotate screenshot - add for saveScreen and -Element - fix UTs (e7f6d40)
- fix: fix ios landscape with notch (80dc779)
- fix: fix proper device calculations for iPad and iPhone - add extra tool bar padding for home bar on iOS - fix unit tests (74b9c47)
- fix: fix safearea for landscape iOS models with notch (76deeeb)
- Merge pull request #111 from wswebcreation/fix/scrollTo-issue (a5796ec)
- fix: fix waiting on css injection to be done slower devices were not yet finished with processing the custom/injected css (23840bc)
- fix: fix scroll to it wasn't always scrolling in all browsers, made it more error proof (2be85a1)
Release 0.21.3
- chore: revert changes and fix npm script (5d0d154)
Release 0.21.2
- update release script (5a983f8)
Release 0.21.1
- update-package-lock (e7cf3df)