@applitools/eyes-cypress 3.32.0 → 3.32.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/CHANGELOG.md CHANGED
@@ -12,6 +12,19 @@
12
12
 
13
13
 
14
14
 
15
+ ## 3.32.2 - 2023/5/3
16
+
17
+ ### Features
18
+ ### Bug fixes
19
+ - Update internal dependencies
20
+ - Fix coded regions by coordinates
21
+
22
+ ## 3.32.1 - 2023/4/24
23
+
24
+ ### Features
25
+ ### Bug fixes
26
+ - Fix fetchConcurrency mapping
27
+
15
28
  ## 3.32.0 - 2023/4/21
16
29
 
17
30
  ### Features
@@ -246,6 +246,16 @@ function transformCypressCheckSettings(settings, refer) {
246
246
  delete currRegion.selector;
247
247
  resRegions.push(currRegion);
248
248
  }
249
+ else if (utils.types.has(region, 'left') && utils.types.has(region, 'top')) {
250
+ resRegions.push({
251
+ region: {
252
+ y: region.top,
253
+ x: region.left,
254
+ width: region.width,
255
+ height: region.height,
256
+ },
257
+ });
258
+ }
249
259
  else {
250
260
  resRegions.push(region);
251
261
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-cypress",
3
- "version": "3.32.0",
3
+ "version": "3.32.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git://github.com/applitools/eyes.sdk.javascript1.git",
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "scripts": {
29
29
  "lint": "eslint \"**/*.{js,ts}\"",
30
- "build": "node ../../node_modules/.bin/ttsc",
30
+ "build": "node ../../node_modules/.bin/tspc",
31
31
  "generate:tests": "coverage-tests generate",
32
32
  "test": "yarn test:unit && yarn test:it && yarn test:e2e && yarn test:ts && yarn test:components && yarn test:coverage",
33
33
  "test:sanity": "yarn test:unit && yarn test:it && yarn test:ts",
@@ -69,11 +69,11 @@
69
69
  }
70
70
  },
71
71
  "dependencies": {
72
- "@applitools/core": "2.5.3",
72
+ "@applitools/core": "2.5.10",
73
73
  "@applitools/eyes-api": "1.13.12",
74
74
  "@applitools/functional-commons": "1.6.0",
75
- "@applitools/logger": "1.1.48",
76
- "@applitools/utils": "1.3.32",
75
+ "@applitools/logger": "1.1.52",
76
+ "@applitools/utils": "1.3.35",
77
77
  "boxen": "5.1.2",
78
78
  "chalk": "3.0.0",
79
79
  "semver": "7.3.8",
@@ -82,11 +82,11 @@
82
82
  "ws": "8.5.0"
83
83
  },
84
84
  "devDependencies": {
85
- "@applitools/api-extractor": "^1.2.14",
85
+ "@applitools/api-extractor": "^1.2.21",
86
86
  "@applitools/bongo": "^3.0.3",
87
87
  "@applitools/sdk-coverage-tests": "^3.0.2",
88
88
  "@applitools/snaptdout": "1.0.1",
89
- "@applitools/test-server": "1.1.28",
89
+ "@applitools/test-server": "1.1.31",
90
90
  "@applitools/test-utils": "1.5.16",
91
91
  "@types/node": "12",
92
92
  "@types/semver": "^7.3.13",
@@ -132,9 +132,11 @@ Cypress.Commands.add('eyesOpen', function (args = {}) {
132
132
  manager =
133
133
  manager ||
134
134
  (await socket.request('Core.makeManager', {
135
- concurrency: Cypress.config('eyesTestConcurrency'),
135
+ settings: {
136
+ concurrency: Cypress.config('eyesTestConcurrency'),
137
+ fetchConcurrency: Cypress.config('appliConfFile').eyesFetchConcurrency,
138
+ },
136
139
  type: 'ufg',
137
- fetchConcurrency: Cypress.config('appliConfFile').eyesFetchConcurrency,
138
140
  }))
139
141
  }
140
142
 
@@ -228,6 +228,15 @@ export function transformCypressCheckSettings(settings: CypressCheckSettings, re
228
228
  const currRegion = {region: region.selector, ...region}
229
229
  delete currRegion.selector
230
230
  resRegions.push(currRegion)
231
+ } else if (utils.types.has(region, 'left') && utils.types.has(region, 'top')) {
232
+ resRegions.push({
233
+ region: {
234
+ y: region.top,
235
+ x: region.left,
236
+ width: region.width,
237
+ height: region.height,
238
+ },
239
+ })
231
240
  } else {
232
241
  resRegions.push(region)
233
242
  }
package/src/expose.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * The types here are compiled via `ttsc` and `api-extractor`, and are used to describe the inputs to
2
+ * The types here are compiled via `tspc` and `api-extractor`, and are used to describe the inputs to
3
3
  * Eyes-Cypress custom commands. The reason they are not written in the `index.d.ts` file next to the
4
4
  * `declare global { namespace Cypress {...}}` statement is that `api-extractor` has a limitation (at
5
5
  * the time of writing this) that drops the `declare global` statement. So it's important to not pass
@@ -6,7 +6,7 @@ import {makeLogger} from '@applitools/logger'
6
6
 
7
7
  // DON'T REMOVE
8
8
  //
9
- // if remove the `ttsc` will compile the absolute path
9
+ // if remove the `tspc` will compile the absolute path
10
10
  //
11
11
  // the absolute path is added because api-extractor goes over the `eyesPlugin`
12
12
  // declaration before it goes over the `EyesConfig` definition, and this is why