Releases: webdriverio/visual-testing
Fix: Update TypeScript types
v1.12.1
This release fixes issue wswebcreation/webdriver-image-comparison#52 regarding the error around Cannot set property 'visibility' of undefined
where the provided element was not an HTMLElement but a WebdriverElement (from for example Puppeteer.)
Contains:
Add tabbable accessibility check
This PR adds 2 new methods to the module that will help you verify if your website is accessible by using the TAB
-key. I can talk for hours about it, but just check the docs to see how it works.
Happy testing!
Contains:
- Merge pull request #22 from wswebcreation/feat/accessibility-lines a473fb0
- feat: update webdriver-image-comparison c186ea8
- chore: update docs and methods ff01954
- test: add tabbable baseline images afa94c3
- chore: remove logic from module and rely on webdriver-image-comparison 5875ba2
- feat: add options and optimize drawing on canvas 422e281
- feat: add initial setup of tabbable lines 04928a3
- Update README.md 7ba09f6
- Update README.md 59d7051
New features
This PR contains:
- Typescript support, thanks to Mauricio Giacomello. Just add this to your
tsconfig.json
:
{
"compilerOptions": {
"types": [
"wdio-image-comparison-service"
]
}
}
- Official support for Chrome DevTools with this module
Contains:
Add support for hybrid apps
This PR adds support for hybrid apps. If you use it please add isHybridApp:true
to your config, like this
const { join } = require('path');
// wdio.conf.js
exports.config = {
// ...
// =====
// Setup
// =====
services: [
['image-comparison',
// The options
{
// Some options, see the docs for more
baselineFolder: join(process.cwd(), './tests/sauceLabsBaseline/'),
formatImageName: '{tag}-{logName}-{width}x{height}',
screenshotPath: join(process.cwd(), '.tmp/'),
savePerInstance: true,
autoSaveBaseline: true,
blockOutStatusBar: true,
blockOutToolBar: true,
// NOTE: When you are testing a hybrid app please use this setting
isHybridApp: true,
// ... more options
}],
],
// ...
};
Contains
- Merge pull request #19 from wswebcreation/feat/update-dependencies f9b7440
- feat: add hybrid and Android 10 support c87aab9
- chore: update baseline a0b5916
- Merge remote-tracking branch 'origin/master' 54d1930
- chore: update baseline f26defb
- Update README.md c9898b8
- Fix ChromeDriver issue for Chrome 69 9b4e57a
- Update README.md 653bbd5
- Update README.md 8d36df5
- chore: add more browsers and iOS 13 b80e9f2
- chore: update to node 12 2560599
- chore: add android 9 again dcfcdc0
- chore: update dependencies and new ff screenshots 10a21e2
Add scaling
This new release adds scaling images functionality thanks to asterium
It can be used like this
scaleImagesToSameSize
- Type:
boolean
- Default:
false
- Mandatory: no
- Remark: Can also be used for
checkElement
,checkScreen()
andcheckFullPageScreen()
. It will override the plugin setting
Scales 2 images to same size before execution of comparison. Highly recommended to enableignoreAntialiasing
and ignoreAlpha
Contains:
- feat: update core with latest version and update some dev-dependencies c767951
Feature
This release adds support for Android 10 and removes the default comparison console log , see below
#####################################################################################
WARNING:
There was a difference. Saved the difference to
/path/image-name-1919x1079.png
#####################################################################################
and adds it to the debug property, thanks to Warley Gabriel. This solves wswebcreation/webdriver-image-comparison#46
Contains:
- feat: upgrade to latest compare core 49d76b6
Feature and fix
This release fixes an issue for not being able to collect all screenshots in certain situations, thanks to Tom Yam
It now also supports iOS 13, see wswebcreation/webdriver-image-comparison#42
Contains:
- feat: upgrade to latest compare core 2a5bf5c
Update compare core
This release contains the new version of the compare core, which enabled you to provide hideElements
and removeElements
as an elementArray, so meaning you can provide this [$('#id'), $$('.class')]
, see also https://github.com/wswebcreation/webdriver-image-comparison/releases/tag/v0.9.0
Contains:
Bug fix
This PR fixes #13
Contains: