Skip to content
This repository has been archived by the owner on Dec 24, 2023. It is now read-only.

Releases: wswebcreation/webdriver-image-comparison

Release 2.0.1

29 Oct 08:19
Compare
Choose a tag to compare

🐛 Bug Fix

Release 2.0.0

24 Oct 06:58
Compare
Choose a tag to compare

💥 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

25 Apr 15:26
Compare
Choose a tag to compare

🚀 New Features

  • feat: support NodeJS 18 (3001d6a)

💅 Polish

  • chore: remove vulnerabilities (3dea35c)

🐛 Bug Fix

Release 1.0.2

16 Oct 07:11
Compare
Choose a tag to compare

💅 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 a toFixed(2) it uses toFixed(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 from toEqual(0) to toEqual('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 and Number(0.00482253.toFixed(3)) = 0.005
  • 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

11 Oct 06:11
Compare
Choose a tag to compare

🐛 Bug Fix

  • Merge pull request #125 from wswebcreation/fix/make-autoscroll-optional (1d31938)

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

11 Oct 05:22
Compare
Choose a tag to compare

💥 Breaking Change

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 called addIOSBezelCorners. If set to true 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

screenshot-Iphone14ProPortrait16-393x852

💅 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

01 Aug 16:16
Compare
Choose a tag to compare
  • 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

27 Jul 15:09
Compare
Choose a tag to compare
  • chore: revert changes and fix npm script (5d0d154)

Release 0.21.2

27 Jul 15:06
Compare
Choose a tag to compare

Release 0.21.1

27 Jul 14:52
Compare
Choose a tag to compare