@applitools/eyes-nightwatch 1.20.4 → 1.21.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,151 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.21.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-nightwatch@1.21.0...js/eyes-nightwatch@1.21.1) (2023-12-05)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/utils bumped to 1.7.0
9
+ #### Features
10
+
11
+ * add Eyes.getResults method ([#2046](https://github.com/applitools/eyes.sdk.javascript1/issues/2046)) ([#2069](https://github.com/applitools/eyes.sdk.javascript1/issues/2069)) ([4d263e1](https://github.com/applitools/eyes.sdk.javascript1/commit/4d263e19cb5e5708790a1a7ef90ff8f3eee50d91))
12
+ * @applitools/socket bumped to 1.1.14
13
+
14
+ * @applitools/req bumped to 1.6.4
15
+
16
+ * @applitools/image bumped to 1.1.9
17
+
18
+ * @applitools/spec-driver-webdriver bumped to 1.0.51
19
+
20
+ * @applitools/spec-driver-puppeteer bumped to 1.3.1
21
+
22
+ * @applitools/nml-client bumped to 1.5.17
23
+
24
+ * @applitools/ufg-client bumped to 1.9.9
25
+
26
+ * @applitools/core-base bumped to 1.7.4
27
+ #### Bug Fixes
28
+
29
+ * do not block concurrency when server response is 503 ([#2049](https://github.com/applitools/eyes.sdk.javascript1/issues/2049)) ([f285009](https://github.com/applitools/eyes.sdk.javascript1/commit/f2850098f7522776c0d0a98bb1d958303628b149))
30
+
31
+
32
+
33
+ * @applitools/core bumped to 4.3.0
34
+ #### Features
35
+
36
+ * add Eyes.getResults method ([#2046](https://github.com/applitools/eyes.sdk.javascript1/issues/2046)) ([#2069](https://github.com/applitools/eyes.sdk.javascript1/issues/2069)) ([4d263e1](https://github.com/applitools/eyes.sdk.javascript1/commit/4d263e19cb5e5708790a1a7ef90ff8f3eee50d91))
37
+
38
+
39
+
40
+ * @applitools/eyes bumped to 1.13.0
41
+ #### Features
42
+
43
+ * add Eyes.getResults method ([#2046](https://github.com/applitools/eyes.sdk.javascript1/issues/2046)) ([#2069](https://github.com/applitools/eyes.sdk.javascript1/issues/2069)) ([4d263e1](https://github.com/applitools/eyes.sdk.javascript1/commit/4d263e19cb5e5708790a1a7ef90ff8f3eee50d91))
44
+
45
+
46
+
47
+ * @applitools/logger bumped to 2.0.14
48
+
49
+ * @applitools/spec-driver-selenium bumped to 1.5.65
50
+
51
+ * @applitools/driver bumped to 1.15.2
52
+
53
+ * @applitools/screenshoter bumped to 3.8.17
54
+
55
+ * @applitools/tunnel-client bumped to 1.3.2
56
+
57
+ * @applitools/ec-client bumped to 1.7.17
58
+
59
+
60
+ ## [1.21.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-nightwatch@1.20.4...js/eyes-nightwatch@1.21.0) (2023-11-21)
61
+
62
+
63
+ ### Features
64
+
65
+ * added notification about outdated sdk version ([#2012](https://github.com/applitools/eyes.sdk.javascript1/issues/2012)) ([0f0a646](https://github.com/applitools/eyes.sdk.javascript1/commit/0f0a6462a56e7c97f9a22173c3b63af91e220adb))
66
+
67
+
68
+ ### Dependencies
69
+
70
+ * @applitools/utils bumped to 1.6.3
71
+ #### Bug Fixes
72
+
73
+ * don't throw error for missing configuration file ([#2034](https://github.com/applitools/eyes.sdk.javascript1/issues/2034)) ([d084e7b](https://github.com/applitools/eyes.sdk.javascript1/commit/d084e7bf6e1727e3969622b4e597881f18241eb3))
74
+ * @applitools/socket bumped to 1.1.13
75
+
76
+ * @applitools/dom-snapshot bumped to 4.7.14
77
+ #### Bug Fixes
78
+
79
+ * preserve css declarations order in dom-snapshot ([#2037](https://github.com/applitools/eyes.sdk.javascript1/issues/2037)) ([1381851](https://github.com/applitools/eyes.sdk.javascript1/commit/1381851d46f28ea7e7724025c4eab33c81c4e144))
80
+ * @applitools/spec-driver-webdriver bumped to 1.0.50
81
+ #### Bug Fixes
82
+
83
+ * send devtool commands in chromium ([#2039](https://github.com/applitools/eyes.sdk.javascript1/issues/2039)) ([ff42043](https://github.com/applitools/eyes.sdk.javascript1/commit/ff42043c3d9f110eb7b22ab1a8448d77859923b4))
84
+
85
+
86
+
87
+ * @applitools/core bumped to 4.2.0
88
+ #### Features
89
+
90
+ * added notification about outdated sdk version ([#2012](https://github.com/applitools/eyes.sdk.javascript1/issues/2012)) ([0f0a646](https://github.com/applitools/eyes.sdk.javascript1/commit/0f0a6462a56e7c97f9a22173c3b63af91e220adb))
91
+ * log driver environment info to splank ([#2023](https://github.com/applitools/eyes.sdk.javascript1/issues/2023)) ([11d0546](https://github.com/applitools/eyes.sdk.javascript1/commit/11d0546e76962b4c231e140b0229b8402da27f69))
92
+
93
+
94
+ #### Bug Fixes
95
+
96
+ * return result when error in the ufg ([#2020](https://github.com/applitools/eyes.sdk.javascript1/issues/2020)) ([28cdcc5](https://github.com/applitools/eyes.sdk.javascript1/commit/28cdcc5a859641d0edde032165c5068fcc580c8d))
97
+
98
+
99
+
100
+ * @applitools/spec-driver-selenium bumped to 1.5.64
101
+
102
+ * @applitools/spec-driver-puppeteer bumped to 1.3.0
103
+ #### Features
104
+
105
+ * added notification about outdated sdk version ([#2012](https://github.com/applitools/eyes.sdk.javascript1/issues/2012)) ([0f0a646](https://github.com/applitools/eyes.sdk.javascript1/commit/0f0a6462a56e7c97f9a22173c3b63af91e220adb))
106
+
107
+
108
+
109
+ * @applitools/screenshoter bumped to 3.8.16
110
+
111
+ * @applitools/tunnel-client bumped to 1.3.1
112
+
113
+ * @applitools/ec-client bumped to 1.7.16
114
+
115
+ * @applitools/core-base bumped to 1.7.3
116
+ #### Bug Fixes
117
+
118
+ * remove connection timeout in case of a long running tasks ([#2006](https://github.com/applitools/eyes.sdk.javascript1/issues/2006)) ([49a596a](https://github.com/applitools/eyes.sdk.javascript1/commit/49a596ac1b022a66b5c07ecfee458cc061891ce0))
119
+ * return result when error in the ufg ([#2020](https://github.com/applitools/eyes.sdk.javascript1/issues/2020)) ([28cdcc5](https://github.com/applitools/eyes.sdk.javascript1/commit/28cdcc5a859641d0edde032165c5068fcc580c8d))
120
+
121
+
122
+
123
+ * @applitools/eyes bumped to 1.12.0
124
+ #### Features
125
+
126
+ * added `enableEyesLogs` configuration to the eyes service ([639ca8a](https://github.com/applitools/eyes.sdk.javascript1/commit/639ca8a021008d06fc09d19ca58ac3d00a18e4c3))
127
+ * added `useExecutionCloud` configuration to the eyes service ([#2033](https://github.com/applitools/eyes.sdk.javascript1/issues/2033)) ([639ca8a](https://github.com/applitools/eyes.sdk.javascript1/commit/639ca8a021008d06fc09d19ca58ac3d00a18e4c3))
128
+
129
+
130
+ #### Bug Fixes
131
+
132
+ * error to unknown type in exception ([#2035](https://github.com/applitools/eyes.sdk.javascript1/issues/2035)) ([16d78c3](https://github.com/applitools/eyes.sdk.javascript1/commit/16d78c3cce90a5cb50cc2aa4e9ab6a58b7b93f89))
133
+
134
+
135
+
136
+ * @applitools/logger bumped to 2.0.13
137
+
138
+ * @applitools/req bumped to 1.6.3
139
+
140
+ * @applitools/image bumped to 1.1.8
141
+
142
+ * @applitools/driver bumped to 1.15.1
143
+
144
+ * @applitools/nml-client bumped to 1.5.16
145
+
146
+ * @applitools/ufg-client bumped to 1.9.8
147
+
148
+
3
149
  ## [1.20.4](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-nightwatch@1.20.3...js/eyes-nightwatch@1.20.4) (2023-11-07)
4
150
 
5
151
 
@@ -17,6 +17,14 @@ function extractEnvironment() {
17
17
  catch {
18
18
  // NOTE: ignore error
19
19
  }
20
- return { versions };
20
+ let sdk = undefined;
21
+ try {
22
+ const { name, version } = require('../package.json');
23
+ sdk = { lang: 'js', name, currentVersion: version };
24
+ }
25
+ catch {
26
+ // NOTE: ignore error
27
+ }
28
+ return { versions, sdk };
21
29
  }
22
30
  exports.extractEnvironment = extractEnvironment;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-nightwatch",
3
- "version": "1.20.4",
3
+ "version": "1.21.1",
4
4
  "description": "Applitools Eyes SDK for Nightwatch.js",
5
5
  "keywords": [
6
6
  "eyes-nightwatch",
@@ -43,15 +43,15 @@
43
43
  "up:framework": "echo \"$(jq '.devDependencies.nightwatch = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
44
44
  },
45
45
  "dependencies": {
46
- "@applitools/driver": "1.15.0",
47
- "@applitools/eyes": "1.11.4",
48
- "@applitools/spec-driver-webdriver": "1.0.49",
49
- "@applitools/utils": "1.6.2",
46
+ "@applitools/driver": "1.15.2",
47
+ "@applitools/eyes": "1.13.0",
48
+ "@applitools/spec-driver-webdriver": "1.0.51",
49
+ "@applitools/utils": "1.7.0",
50
50
  "webdriver": "7.31.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@applitools/api-extractor": "^1.2.22",
54
- "@applitools/bongo": "^5.7.4",
54
+ "@applitools/bongo": "^5.7.6",
55
55
  "@applitools/generic": "^3.5.2",
56
56
  "@applitools/test-utils": "^1.5.17",
57
57
  "@types/nightwatch": "^2.3.25",
package/types/index.d.ts CHANGED
@@ -45,14 +45,7 @@ export class Eyes {
45
45
  open(appName?: undefined | string, testName?: undefined | string, viewportSize?: undefined | RectangleSizePlain, sessionType?: undefined | SessionTypePlain): Promise<void>;
46
46
  check(name: string, checkSettings: CheckSettingsAutomation): Promise<MatchResult>;
47
47
  check(name: string, checkSettings: CheckSettingsImage): Promise<MatchResult>;
48
- check(target: {
49
- image: string | URL | Buffer;
50
- name?: undefined | string;
51
- dom?: undefined | string;
52
- locationInViewport?: undefined | LocationPlain;
53
- locationInView?: undefined | LocationPlain;
54
- fullViewSize?: undefined | RectangleSizePlain;
55
- }, checkSettings?: undefined | CheckSettingsImagePlain): Promise<MatchResult>;
48
+ check(target: Image, checkSettings?: undefined | CheckSettingsImagePlain): Promise<MatchResult>;
56
49
  check(checkSettings?: undefined | CheckSettingsAutomationPlain): Promise<MatchResult>;
57
50
  checkWindow(name?: undefined | string, timeout?: undefined | number, fully?: undefined | boolean): Promise<MatchResult>;
58
51
  checkFrame(element: number, timeout?: undefined | number, name?: undefined | string): Promise<MatchResult>;
@@ -112,6 +105,7 @@ export class Eyes {
112
105
  abort(): Promise<TestResults>;
113
106
  abortAsync(): Promise<void>;
114
107
  abortIfNotClosed(): Promise<TestResultsPlain>;
108
+ getResults(throwErr?: undefined | boolean): Promise<Array<TestResults>>;
115
109
  getViewportSize(): Promise<RectangleSize>;
116
110
  setViewportSize(size: RectangleSizePlain): Promise<void>;
117
111
  getScrollRootElement(): Element | EyesSelector<Selector>;
@@ -1026,6 +1020,14 @@ export class BatchInfo implements Required<BatchInfoPlain> {
1026
1020
  addProperty(name: string, value: string): BatchInfo;
1027
1021
  addProperty(prop: PropertyDataPlain): BatchInfo;
1028
1022
  }
1023
+ export type Image = {
1024
+ image: string | URL | Buffer;
1025
+ name?: undefined | string;
1026
+ dom?: undefined | string;
1027
+ locationInViewport?: undefined | LocationPlain;
1028
+ locationInView?: undefined | LocationPlain;
1029
+ fullViewSize?: undefined | RectangleSizePlain;
1030
+ };
1029
1031
  export type CheckSettingsImagePlain = {
1030
1032
  name?: undefined | string;
1031
1033
  region?: undefined | RegionPlain;
@@ -1065,22 +1067,8 @@ export type CheckSettingsImagePlain = {
1065
1067
  densityMetrics?: undefined | { scaleRatio?: undefined | number; xdpi?: undefined | number; ydpi?: undefined | number; };
1066
1068
  };
1067
1069
  export class CheckSettingsImage {
1068
- constructor(settings?: undefined | CheckSettingsImagePlain, target?: undefined | {
1069
- image: string | URL | Buffer;
1070
- name?: undefined | string;
1071
- dom?: undefined | string;
1072
- locationInViewport?: undefined | LocationPlain;
1073
- locationInView?: undefined | LocationPlain;
1074
- fullViewSize?: undefined | RectangleSizePlain;
1075
- });
1076
- constructor(settings?: undefined | CheckSettingsImage, target?: undefined | {
1077
- image: string | URL | Buffer;
1078
- name?: undefined | string;
1079
- dom?: undefined | string;
1080
- locationInViewport?: undefined | LocationPlain;
1081
- locationInView?: undefined | LocationPlain;
1082
- fullViewSize?: undefined | RectangleSizePlain;
1083
- });
1070
+ constructor(settings?: undefined | CheckSettingsImagePlain, target?: undefined | Image);
1071
+ constructor(settings?: undefined | CheckSettingsImage, target?: undefined | Image);
1084
1072
  image(image: string): CheckSettingsImage;
1085
1073
  image(image: URL): CheckSettingsImage;
1086
1074
  image(image: Buffer): CheckSettingsImage;