testplane 8.11.1 → 8.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testplane",
3
- "version": "8.11.1",
3
+ "version": "8.11.3",
4
4
  "description": "Tests framework based on mocha and wdio",
5
5
  "main": "build/src/index.js",
6
6
  "files": [
@@ -76,7 +76,7 @@
76
76
  "micromatch": "4.0.5",
77
77
  "mocha": "10.2.0",
78
78
  "modern-node-polyfills": "1.0.0",
79
- "plugins-loader": "1.3.0",
79
+ "plugins-loader": "1.3.1",
80
80
  "png-validator": "1.1.0",
81
81
  "sharp": "0.32.6",
82
82
  "sizzle": "2.3.6",
@@ -80,7 +80,7 @@ function prepareScreenshotUnsafe(areas, opts) {
80
80
  top: util.getScrollTop(scrollElem),
81
81
  width: viewportWidth,
82
82
  height: viewportHeight
83
- }),
83
+ }).round(),
84
84
  pixelRatio = configurePixelRatio(opts.usePixelRatio),
85
85
  rect,
86
86
  selectors = [];
@@ -49,15 +49,15 @@ export interface ImageInfo {
49
49
  path: string;
50
50
  size: ImageSize;
51
51
  }
52
- export interface AssertViewResultSuccess {
53
- refImg: ImageInfo;
54
- stateName: string;
55
- }
56
52
  export interface DiffOptions extends LooksSameOptions {
57
53
  current: string;
58
54
  reference: string;
59
55
  diffColor: string;
60
56
  }
57
+ export interface AssertViewResultSuccess {
58
+ refImg: ImageInfo;
59
+ stateName: string;
60
+ }
61
61
  export interface AssertViewResultDiff {
62
62
  currImg: ImageInfo;
63
63
  diffBuffer?: ArrayBuffer;
@@ -97,7 +97,13 @@ export interface CommandHistory {
97
97
  c: CommandHistory[];
98
98
  }
99
99
  export interface ExecutionThreadToolCtx {
100
- assertViewResults: Array<AssertViewResult>;
100
+ assertViewResults: {
101
+ add: (result: AssertViewResult) => void;
102
+ hasFails: () => boolean;
103
+ hasState: (stateName: string) => boolean;
104
+ toRawObject: () => Array<AssertViewResult>;
105
+ get: () => Array<AssertViewResult>;
106
+ };
101
107
  }
102
108
  export interface TestResult extends Test {
103
109
  assertViewResults: Array<AssertViewResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testplane",
3
- "version": "8.11.1",
3
+ "version": "8.11.3",
4
4
  "description": "Tests framework based on mocha and wdio",
5
5
  "main": "build/src/index.js",
6
6
  "files": [
@@ -76,7 +76,7 @@
76
76
  "micromatch": "4.0.5",
77
77
  "mocha": "10.2.0",
78
78
  "modern-node-polyfills": "1.0.0",
79
- "plugins-loader": "1.3.0",
79
+ "plugins-loader": "1.3.1",
80
80
  "png-validator": "1.1.0",
81
81
  "sharp": "0.32.6",
82
82
  "sizzle": "2.3.6",