webdriver-image-comparison
Advanced tools
Comparing version
# webdriver-image-comparison | ||
## 5.0.1 | ||
### Patch Changes | ||
- f878cab: # ๐ Feature | ||
- Add device support for Storybook, it can be used like this | ||
```sh | ||
npx wdio tests/configs/wdio.local.desktop.storybook.conf.ts --storybook --devices="iPhone 14 Pro Max","Pixel 3 XL" | ||
``` | ||
#### Committers: 1 | ||
- Wim Selles ([@wswebcreation](https://github.com/wswebcreation)) | ||
## 5.0.0 | ||
@@ -4,0 +20,0 @@ |
import type { IosOffsets } from './constants.interfaces'; | ||
import type { ResizeDimensions } from '../methods/images.interfaces'; | ||
export declare const DEFAULT_FORMAT_STRING = "{tag}-{browserName}-{width}x{height}-dpr-{dpr}"; | ||
export declare const STORYBOOK_FORMAT_STRING = "{tag}-{logName}-{width}x{height}-dpr-{dpr}"; | ||
export declare const PLATFORMS: { | ||
@@ -5,0 +6,0 @@ ANDROID: string; |
@@ -14,4 +14,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.supportedIosBezelDevices = exports.IOS_OFFSETS = exports.ANDROID_OFFSETS = exports.DEFAULT_TABBABLE_OPTIONS = exports.FULL_PAGE_SCROLL_TIMEOUT = exports.DEFAULT_RESIZE_DIMENSIONS = exports.CUSTOM_CSS_ID = exports.NOT_KNOWN = exports.DESKTOP = exports.DEFAULT_SHADOW = exports.FOLDERS = exports.PLATFORMS = exports.DEFAULT_FORMAT_STRING = void 0; | ||
exports.supportedIosBezelDevices = exports.IOS_OFFSETS = exports.ANDROID_OFFSETS = exports.DEFAULT_TABBABLE_OPTIONS = exports.FULL_PAGE_SCROLL_TIMEOUT = exports.DEFAULT_RESIZE_DIMENSIONS = exports.CUSTOM_CSS_ID = exports.NOT_KNOWN = exports.DESKTOP = exports.DEFAULT_SHADOW = exports.FOLDERS = exports.PLATFORMS = exports.STORYBOOK_FORMAT_STRING = exports.DEFAULT_FORMAT_STRING = void 0; | ||
exports.DEFAULT_FORMAT_STRING = '{tag}-{browserName}-{width}x{height}-dpr-{dpr}'; | ||
exports.STORYBOOK_FORMAT_STRING = '{tag}-{logName}-{width}x{height}-dpr-{dpr}'; | ||
exports.PLATFORMS = { | ||
@@ -18,0 +19,0 @@ ANDROID: 'android', |
@@ -28,6 +28,6 @@ "use strict"; | ||
clearFolder: (_d = options.clearRuntimeFolder) !== null && _d !== void 0 ? _d : false, | ||
formatImageName: (_e = options.formatImageName) !== null && _e !== void 0 ? _e : constants_js_1.DEFAULT_FORMAT_STRING, | ||
formatImageName: (_e = options.formatImageName) !== null && _e !== void 0 ? _e : ((0, utils_js_1.isStorybook)() ? constants_js_1.STORYBOOK_FORMAT_STRING : constants_js_1.DEFAULT_FORMAT_STRING), | ||
isHybridApp: (_f = options.isHybridApp) !== null && _f !== void 0 ? _f : false, | ||
logLevel: (_g = options.logLevel) !== null && _g !== void 0 ? _g : options_interfaces_1.LogLevel.info, | ||
savePerInstance: ((_h = options.savePerInstance) !== null && _h !== void 0 ? _h : (0, utils_js_1.isStorybook)()) ? true : false, | ||
savePerInstance: (_h = options.savePerInstance) !== null && _h !== void 0 ? _h : ((0, utils_js_1.isStorybook)() ? true : false), | ||
toolBarShadowPadding: (_j = options.toolBarShadowPadding) !== null && _j !== void 0 ? _j : constants_js_1.DEFAULT_SHADOW.TOOL_BAR, | ||
@@ -34,0 +34,0 @@ disableCSSAnimation: (_k = options.disableCSSAnimation) !== null && _k !== void 0 ? _k : false, |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" /> | ||
@@ -2,0 +3,0 @@ /// <reference types="resemblejs" /> |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" /> | ||
@@ -2,0 +3,0 @@ import type { ComparisonOptions } from 'resemblejs'; |
{ | ||
"name": "webdriver-image-comparison", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"author": "Wim Selles - wswebcreation", | ||
@@ -5,0 +5,0 @@ "description": "An image compare module that can be used for different NodeJS Test automation frameworks that support the webdriver protocol", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2274618
0.05%11324
0.04%