@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 +6 -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 +9 -0
- 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
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.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.
|
|
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
|
@@ -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
|
}
|
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;
|