@applitools/eyes-cypress 3.31.1 → 3.32.0

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,12 @@
12
12
 
13
13
 
14
14
 
15
+ ## 3.32.0 - 2023/4/21
16
+
17
+ ### Features
18
+ - Add a timeout and max concurrency for fetching resources
19
+ ### Bug fixes
20
+
15
21
  ## 3.31.1 - 2023/4/14
16
22
 
17
23
  ### Features
@@ -40,6 +40,8 @@ function makeConfig() {
40
40
  'disableBrowserFetching',
41
41
  'testConcurrency',
42
42
  'removeDuplicateTests',
43
+ 'eyesFetchConcurrency',
44
+ 'universalDebug',
43
45
  ],
44
46
  });
45
47
  if ((!config.batch || !config.batch.id) && !config.batchId) {
@@ -69,6 +71,7 @@ function makeConfig() {
69
71
  eyesTestConcurrency: config.testConcurrency || DEFAULT_TEST_CONCURRENCY,
70
72
  eyesWaitBeforeCapture: config.waitBeforeCapture,
71
73
  eyesRemoveDuplicateTests: !!config.removeDuplicateTests,
74
+ universalDebug: !!config.universalDebug,
72
75
  };
73
76
  return { config, eyesConfig };
74
77
  }
@@ -40,6 +40,7 @@ function makeStartServer({ logger, eyesConfig }) {
40
40
  forkOptions,
41
41
  singleton: false,
42
42
  portResolutionMode: 'random',
43
+ debug: eyesConfig.universalDebug,
43
44
  });
44
45
  const managers = [];
45
46
  let socketWithUniversal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-cypress",
3
- "version": "3.31.1",
3
+ "version": "3.32.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git://github.com/applitools/eyes.sdk.javascript1.git",
@@ -69,7 +69,7 @@
69
69
  }
70
70
  },
71
71
  "dependencies": {
72
- "@applitools/core": "2.4.12",
72
+ "@applitools/core": "2.5.3",
73
73
  "@applitools/eyes-api": "1.13.12",
74
74
  "@applitools/functional-commons": "1.6.0",
75
75
  "@applitools/logger": "1.1.48",
@@ -134,6 +134,7 @@ Cypress.Commands.add('eyesOpen', function (args = {}) {
134
134
  (await socket.request('Core.makeManager', {
135
135
  concurrency: Cypress.config('eyesTestConcurrency'),
136
136
  type: 'ufg',
137
+ fetchConcurrency: Cypress.config('appliConfFile').eyesFetchConcurrency,
137
138
  }))
138
139
  }
139
140
 
@@ -184,6 +185,14 @@ Cypress.Commands.add('eyesClose', () => {
184
185
  })
185
186
  })
186
187
 
188
+ // internal command //
189
+ Cypress.Commands.add('debugHistory', async function () {
190
+ Cypress.log({name: 'Debug: history'})
191
+ const history = await socket.request('Debug.getHistory')
192
+
193
+ return history
194
+ })
195
+
187
196
  function setRootContext() {
188
197
  cy.state('window').document['applitools-marker'] = 'root-context'
189
198
  }
@@ -14,6 +14,8 @@ export default function makeConfig(): {config: any; eyesConfig: EyesPluginConfig
14
14
  'disableBrowserFetching',
15
15
  'testConcurrency',
16
16
  'removeDuplicateTests',
17
+ 'eyesFetchConcurrency',
18
+ 'universalDebug',
17
19
  ],
18
20
  })
19
21
 
@@ -49,6 +51,7 @@ export default function makeConfig(): {config: any; eyesConfig: EyesPluginConfig
49
51
  eyesTestConcurrency: config.testConcurrency || DEFAULT_TEST_CONCURRENCY,
50
52
  eyesWaitBeforeCapture: config.waitBeforeCapture,
51
53
  eyesRemoveDuplicateTests: !!config.removeDuplicateTests,
54
+ universalDebug: !!config.universalDebug,
52
55
  }
53
56
 
54
57
  return {config, eyesConfig}
@@ -24,6 +24,7 @@ export type EyesPluginConfig = {
24
24
  eyesPort?: number
25
25
  eyesIsGlobalHooksSupported?: boolean
26
26
  eyesRemoveDuplicateTests?: boolean
27
+ universalDebug?: boolean
27
28
  }
28
29
 
29
30
  const {config, eyesConfig} = makeConfig()
@@ -67,6 +67,7 @@ export default function makeStartServer({logger, eyesConfig}: {logger: Logger; e
67
67
  forkOptions,
68
68
  singleton: false,
69
69
  portResolutionMode: 'random',
70
+ debug: eyesConfig.universalDebug,
70
71
  })
71
72
 
72
73
  const managers: {manager: object; socketWithUniversal: SocketWithUniversal}[] = []
package/types/expose.d.ts CHANGED
@@ -586,6 +586,7 @@ export type EyesPluginConfig = {
586
586
  eyesPort?: number;
587
587
  eyesIsGlobalHooksSupported?: boolean;
588
588
  eyesRemoveDuplicateTests?: boolean;
589
+ universalDebug?: boolean;
589
590
  };
590
591
  declare const _default: (pluginInitArgs: Cypress.ConfigOptions | NodeJS.Module) => Cypress.ConfigOptions | NodeJS.Module | (() => Promise<void>);
591
592
  export default _default;