@applitools/eyes 1.0.0 → 1.0.2
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.
- package/dist/Eyes.js +2 -1
- package/dist/Runners.js +17 -11
- package/package.json +6 -6
- package/types/Runners.d.ts +13 -12
package/dist/Eyes.js
CHANGED
|
@@ -52,6 +52,7 @@ class Eyes {
|
|
|
52
52
|
capabilities: { eyesServerUrl: config === null || config === void 0 ? void 0 : config.serverUrl, apiKey: config === null || config === void 0 ? void 0 : config.apiKey },
|
|
53
53
|
},
|
|
54
54
|
});
|
|
55
|
+
client.unref();
|
|
55
56
|
return client.url;
|
|
56
57
|
}
|
|
57
58
|
static async setViewportSize(driver, size) {
|
|
@@ -229,7 +230,7 @@ class Eyes {
|
|
|
229
230
|
(_a = (_c = config.screenshot).fully) !== null && _a !== void 0 ? _a : (_c.fully = false);
|
|
230
231
|
let type;
|
|
231
232
|
if (((_b = settings === null || settings === void 0 ? void 0 : settings.nmgOptions) === null || _b === void 0 ? void 0 : _b.nonNMGCheck) === 'addToAllDevices') {
|
|
232
|
-
type = this._runner.
|
|
233
|
+
type = this._runner.type === 'ufg' ? 'classic' : 'ufg';
|
|
233
234
|
}
|
|
234
235
|
const [result] = await this._eyes.check({ type, target, settings, config });
|
|
235
236
|
return new MatchResult_1.MatchResultData(result);
|
package/dist/Runners.js
CHANGED
|
@@ -44,7 +44,7 @@ class EyesRunner {
|
|
|
44
44
|
/** @internal */
|
|
45
45
|
async openEyes(options) {
|
|
46
46
|
var _a;
|
|
47
|
-
(_a = this._manager) !== null && _a !== void 0 ? _a : (this._manager = await this._core.makeManager(this.
|
|
47
|
+
(_a = this._manager) !== null && _a !== void 0 ? _a : (this._manager = await this._core.makeManager({ type: this.type, settings: this.settings }));
|
|
48
48
|
return await this._manager.openEyes(options);
|
|
49
49
|
}
|
|
50
50
|
async getAllTestResults(throwErr = true) {
|
|
@@ -84,8 +84,17 @@ class EyesRunner {
|
|
|
84
84
|
}
|
|
85
85
|
exports.EyesRunner = EyesRunner;
|
|
86
86
|
class VisualGridRunner extends EyesRunner {
|
|
87
|
+
/** @internal */
|
|
88
|
+
get settings() {
|
|
89
|
+
return {
|
|
90
|
+
concurrency: this._testConcurrency,
|
|
91
|
+
legacyConcurrency: this._legacyConcurrency,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
87
94
|
constructor(optionsOrLegacyConcurrency) {
|
|
88
95
|
super();
|
|
96
|
+
/** @internal */
|
|
97
|
+
this.type = 'ufg';
|
|
89
98
|
if (utils.types.isNumber(optionsOrLegacyConcurrency)) {
|
|
90
99
|
this._legacyConcurrency = optionsOrLegacyConcurrency;
|
|
91
100
|
}
|
|
@@ -96,14 +105,6 @@ class VisualGridRunner extends EyesRunner {
|
|
|
96
105
|
this._testConcurrency = options.testConcurrency;
|
|
97
106
|
}
|
|
98
107
|
}
|
|
99
|
-
/** @internal */
|
|
100
|
-
get config() {
|
|
101
|
-
return {
|
|
102
|
-
type: 'ufg',
|
|
103
|
-
concurrency: this._testConcurrency,
|
|
104
|
-
legacyConcurrency: this._legacyConcurrency,
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
108
|
get testConcurrency() {
|
|
108
109
|
return this._testConcurrency;
|
|
109
110
|
}
|
|
@@ -118,9 +119,14 @@ class VisualGridRunner extends EyesRunner {
|
|
|
118
119
|
}
|
|
119
120
|
exports.VisualGridRunner = VisualGridRunner;
|
|
120
121
|
class ClassicRunner extends EyesRunner {
|
|
122
|
+
constructor() {
|
|
123
|
+
super(...arguments);
|
|
124
|
+
/** @internal */
|
|
125
|
+
this.type = 'classic';
|
|
126
|
+
}
|
|
121
127
|
/** @internal */
|
|
122
|
-
get
|
|
123
|
-
return {
|
|
128
|
+
get settings() {
|
|
129
|
+
return {};
|
|
124
130
|
}
|
|
125
131
|
}
|
|
126
132
|
exports.ClassicRunner = ClassicRunner;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"applitools",
|
|
6
6
|
"eyes",
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
"postversion": "bongo postversion"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@applitools/core": "2.4.
|
|
57
|
-
"@applitools/logger": "1.1.
|
|
58
|
-
"@applitools/utils": "1.3.
|
|
56
|
+
"@applitools/core": "2.4.3",
|
|
57
|
+
"@applitools/logger": "1.1.48",
|
|
58
|
+
"@applitools/utils": "1.3.32"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@applitools/bongo": "^3.0.
|
|
62
|
-
"@applitools/req": "^1.1.
|
|
61
|
+
"@applitools/bongo": "^3.0.2",
|
|
62
|
+
"@applitools/req": "^1.1.33",
|
|
63
63
|
"@types/node": "^12.20.55"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
package/types/Runners.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ export declare abstract class EyesRunner {
|
|
|
8
8
|
private _manager?;
|
|
9
9
|
private _eyes;
|
|
10
10
|
/** @internal */
|
|
11
|
-
abstract
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
abstract readonly type: 'classic' | 'ufg';
|
|
12
|
+
/** @internal */
|
|
13
|
+
abstract readonly settings: Core.EyesManagerSettings;
|
|
14
14
|
/** @internal */
|
|
15
15
|
attach<TSpec extends Core.SpecType = Core.SpecType>(eyes: Eyes<TSpec>, core: Core.Core<TSpec, 'classic' | 'ufg'>): void;
|
|
16
16
|
/** @internal */
|
|
@@ -25,17 +25,18 @@ export declare abstract class EyesRunner {
|
|
|
25
25
|
export declare class VisualGridRunner extends EyesRunner {
|
|
26
26
|
private _testConcurrency?;
|
|
27
27
|
private _legacyConcurrency?;
|
|
28
|
+
/** @internal */
|
|
29
|
+
readonly type: "ufg";
|
|
30
|
+
/** @internal */
|
|
31
|
+
get settings(): {
|
|
32
|
+
concurrency: number | undefined;
|
|
33
|
+
legacyConcurrency: number | undefined;
|
|
34
|
+
};
|
|
28
35
|
constructor(options?: RunnerOptions);
|
|
29
36
|
/** @deprecated */
|
|
30
37
|
constructor(options?: RunnerOptionsFluent);
|
|
31
38
|
/** @deprecated */
|
|
32
39
|
constructor(legacyConcurrency?: number);
|
|
33
|
-
/** @internal */
|
|
34
|
-
get config(): {
|
|
35
|
-
type: "ufg";
|
|
36
|
-
concurrency: number | undefined;
|
|
37
|
-
legacyConcurrency: number | undefined;
|
|
38
|
-
};
|
|
39
40
|
get testConcurrency(): number | undefined;
|
|
40
41
|
/** @deprecated */
|
|
41
42
|
get legacyConcurrency(): number | undefined;
|
|
@@ -44,7 +45,7 @@ export declare class VisualGridRunner extends EyesRunner {
|
|
|
44
45
|
}
|
|
45
46
|
export declare class ClassicRunner extends EyesRunner {
|
|
46
47
|
/** @internal */
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
};
|
|
48
|
+
readonly type: "classic";
|
|
49
|
+
/** @internal */
|
|
50
|
+
get settings(): {};
|
|
50
51
|
}
|