@applitools/eyes-cypress 3.31.1 → 3.32.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 +12 -0
- package/dist/plugin/config.js +3 -0
- package/dist/plugin/server.js +1 -0
- package/package.json +2 -2
- package/src/browser/commands.js +12 -1
- package/src/plugin/config.ts +3 -0
- package/src/plugin/index.ts +1 -0
- package/src/plugin/server.ts +1 -0
- package/types/expose.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,18 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
+
## 3.32.1 - 2023/4/24
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
### Bug fixes
|
|
19
|
+
- Fix fetchConcurrency mapping
|
|
20
|
+
|
|
21
|
+
## 3.32.0 - 2023/4/21
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
- Add a timeout and max concurrency for fetching resources
|
|
25
|
+
### Bug fixes
|
|
26
|
+
|
|
15
27
|
## 3.31.1 - 2023/4/14
|
|
16
28
|
|
|
17
29
|
### Features
|
package/dist/plugin/config.js
CHANGED
|
@@ -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
|
}
|
package/dist/plugin/server.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-cypress",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.32.1",
|
|
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.
|
|
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",
|
package/src/browser/commands.js
CHANGED
|
@@ -132,7 +132,10 @@ Cypress.Commands.add('eyesOpen', function (args = {}) {
|
|
|
132
132
|
manager =
|
|
133
133
|
manager ||
|
|
134
134
|
(await socket.request('Core.makeManager', {
|
|
135
|
-
|
|
135
|
+
settings: {
|
|
136
|
+
concurrency: Cypress.config('eyesTestConcurrency'),
|
|
137
|
+
fetchConcurrency: Cypress.config('appliConfFile').eyesFetchConcurrency,
|
|
138
|
+
},
|
|
136
139
|
type: 'ufg',
|
|
137
140
|
}))
|
|
138
141
|
}
|
|
@@ -184,6 +187,14 @@ Cypress.Commands.add('eyesClose', () => {
|
|
|
184
187
|
})
|
|
185
188
|
})
|
|
186
189
|
|
|
190
|
+
// internal command //
|
|
191
|
+
Cypress.Commands.add('debugHistory', async function () {
|
|
192
|
+
Cypress.log({name: 'Debug: history'})
|
|
193
|
+
const history = await socket.request('Debug.getHistory')
|
|
194
|
+
|
|
195
|
+
return history
|
|
196
|
+
})
|
|
197
|
+
|
|
187
198
|
function setRootContext() {
|
|
188
199
|
cy.state('window').document['applitools-marker'] = 'root-context'
|
|
189
200
|
}
|
package/src/plugin/config.ts
CHANGED
|
@@ -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}
|
package/src/plugin/index.ts
CHANGED
package/src/plugin/server.ts
CHANGED
|
@@ -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;
|