@applitools/eyes-cypress 3.34.0 → 3.35.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 +155 -0
- package/dist/browser/spec-driver.js +5 -2
- package/dist/browser/transformCypressConfig.js +2 -1
- package/dist/plugin/hooks.js +1 -1
- package/dist/plugin/pluginExport.js +3 -1
- package/dist/plugin/server.js +1 -1
- package/package.json +8 -9
- package/src/browser/commands.js +5 -1
- package/src/browser/spec-driver.ts +10 -3
- package/src/browser/transformCypressCheckSettings.ts +7 -2
- package/src/browser/transformCypressConfig.ts +2 -1
- package/src/browser/utils.ts +3 -1
- package/src/expose.ts +2 -0
- package/src/plugin/getErrorsAndDiffs.ts +3 -1
- package/src/plugin/hooks.ts +1 -1
- package/src/plugin/pluginExport.ts +7 -2
- package/src/plugin/server.ts +1 -1
- package/test/coverage/{generic/cypress → cypress}/support/commands.js +1 -1
- package/test/coverage/cypress/support/index.js +1 -0
- package/test/e2e/cypress/plugins/index.js +1 -1
- package/types/expose.d.ts +14 -9
- package/test/coverage/generic/cypress/support/index.js +0 -1
- package/test/coverage/index.js +0 -24
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,161 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
+
## [3.35.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-cypress-v3.34.2...js/eyes-cypress@3.35.0) (2023-08-03)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* mark session as component ([#1841](https://github.com/applitools/eyes.sdk.javascript1/issues/1841)) ([c579bb6](https://github.com/applitools/eyes.sdk.javascript1/commit/c579bb69de8f3bffc64e73ac8bd4fa646e96eb01))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* fix workspace dependencies ([2a3856f](https://github.com/applitools/eyes.sdk.javascript1/commit/2a3856f3ce3bcf1407f59c676653b6f218556760))
|
|
26
|
+
* update serverUrl propery name ([de9f082](https://github.com/applitools/eyes.sdk.javascript1/commit/de9f0825ab55a0b4022eb439698bcbabe2398c14))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Code Refactoring
|
|
30
|
+
|
|
31
|
+
* ufg client ([#1780](https://github.com/applitools/eyes.sdk.javascript1/issues/1780)) ([d60cf16](https://github.com/applitools/eyes.sdk.javascript1/commit/d60cf1616741a96b152a1548760bb98116e5c3f9))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Dependencies
|
|
35
|
+
|
|
36
|
+
* @applitools/core bumped to 3.6.6
|
|
37
|
+
#### Bug Fixes
|
|
38
|
+
|
|
39
|
+
* populate log event settings with env vars ([#1840](https://github.com/applitools/eyes.sdk.javascript1/issues/1840)) ([0a6af60](https://github.com/applitools/eyes.sdk.javascript1/commit/0a6af60b5b988f59b7adb03f6606b3417fbeb537))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
* @applitools/core-base bumped to 1.5.0
|
|
44
|
+
#### Features
|
|
45
|
+
|
|
46
|
+
* add stuck request retries to all requests to UFG and Eyes ([#1826](https://github.com/applitools/eyes.sdk.javascript1/issues/1826)) ([5884d42](https://github.com/applitools/eyes.sdk.javascript1/commit/5884d428b230e3a832a2110a388ebe63a94006fc))
|
|
47
|
+
* mark session as component ([#1841](https://github.com/applitools/eyes.sdk.javascript1/issues/1841)) ([c579bb6](https://github.com/applitools/eyes.sdk.javascript1/commit/c579bb69de8f3bffc64e73ac8bd4fa646e96eb01))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
#### Bug Fixes
|
|
51
|
+
|
|
52
|
+
* populate log event settings with env vars ([#1840](https://github.com/applitools/eyes.sdk.javascript1/issues/1840)) ([0a6af60](https://github.com/applitools/eyes.sdk.javascript1/commit/0a6af60b5b988f59b7adb03f6606b3417fbeb537))
|
|
53
|
+
* @applitools/driver bumped to 1.13.4
|
|
54
|
+
#### Bug Fixes
|
|
55
|
+
|
|
56
|
+
* extract device orientation from a browser for web executions ([d8d4e91](https://github.com/applitools/eyes.sdk.javascript1/commit/d8d4e919965fb9105915e762c397ec2cc57a8a71))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
* @applitools/snippets bumped to 2.4.22
|
|
61
|
+
#### Bug Fixes
|
|
62
|
+
|
|
63
|
+
* improve orientation extraction for ios devices ([378d989](https://github.com/applitools/eyes.sdk.javascript1/commit/378d9894e4fbc7247087ccb8c46266dc4737e2e5))
|
|
64
|
+
* @applitools/ufg-client bumped to 1.6.0
|
|
65
|
+
#### Features
|
|
66
|
+
|
|
67
|
+
* add stuck request retries to all requests to UFG and Eyes ([#1826](https://github.com/applitools/eyes.sdk.javascript1/issues/1826)) ([5884d42](https://github.com/applitools/eyes.sdk.javascript1/commit/5884d428b230e3a832a2110a388ebe63a94006fc))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
#### Bug Fixes
|
|
71
|
+
|
|
72
|
+
* improve fetch error experience when fetching from tunnel ([e7d8b49](https://github.com/applitools/eyes.sdk.javascript1/commit/e7d8b49947c07beb27f110cb4952e8c3206469af))
|
|
73
|
+
* @applitools/ec-client bumped to 1.7.4
|
|
74
|
+
|
|
75
|
+
* @applitools/spec-driver-webdriver bumped to 1.0.41
|
|
76
|
+
|
|
77
|
+
* @applitools/nml-client bumped to 1.5.6
|
|
78
|
+
|
|
79
|
+
* @applitools/spec-driver-webdriverio bumped to 1.5.10
|
|
80
|
+
|
|
81
|
+
* @applitools/screenshoter bumped to 3.8.7
|
|
82
|
+
|
|
83
|
+
* @applitools/spec-driver-puppeteer bumped to 1.1.72
|
|
84
|
+
|
|
85
|
+
* @applitools/spec-driver-selenium bumped to 1.5.55
|
|
86
|
+
|
|
87
|
+
* @applitools/eyes bumped to 1.6.6
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## [3.34.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-cypress@3.34.0...js/eyes-cypress@3.34.1) (2023-07-05)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Dependencies
|
|
94
|
+
|
|
95
|
+
* @applitools/core bumped from 3.4.0 to 3.5.0
|
|
96
|
+
#### Features
|
|
97
|
+
|
|
98
|
+
* added auto applitools lib detection ([#1707](https://github.com/applitools/eyes.sdk.javascript1/issues/1707)) ([7d439b5](https://github.com/applitools/eyes.sdk.javascript1/commit/7d439b52af55f3b0596c9d35d6ba85c717448023))
|
|
99
|
+
* support dns caching ([#1680](https://github.com/applitools/eyes.sdk.javascript1/issues/1680)) ([9bbff34](https://github.com/applitools/eyes.sdk.javascript1/commit/9bbff34f50c9d18758b55a6bcb45571ca1148180))
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
#### Bug Fixes
|
|
103
|
+
|
|
104
|
+
* some fix ([660a137](https://github.com/applitools/eyes.sdk.javascript1/commit/660a1376a49dd28f8f399690502cd3d1f77665fa))
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
* @applitools/core-base bumped from 1.2.1 to 1.3.0
|
|
109
|
+
#### Features
|
|
110
|
+
|
|
111
|
+
* support dns caching ([#1680](https://github.com/applitools/eyes.sdk.javascript1/issues/1680)) ([9bbff34](https://github.com/applitools/eyes.sdk.javascript1/commit/9bbff34f50c9d18758b55a6bcb45571ca1148180))
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
* @applitools/req bumped from 1.3.3 to 1.4.0
|
|
116
|
+
#### Features
|
|
117
|
+
|
|
118
|
+
* support dns caching ([#1680](https://github.com/applitools/eyes.sdk.javascript1/issues/1680)) ([9bbff34](https://github.com/applitools/eyes.sdk.javascript1/commit/9bbff34f50c9d18758b55a6bcb45571ca1148180))
|
|
119
|
+
* @applitools/driver bumped from 1.12.4 to 1.13.0
|
|
120
|
+
#### Features
|
|
121
|
+
|
|
122
|
+
* added auto applitools lib detection ([#1707](https://github.com/applitools/eyes.sdk.javascript1/issues/1707)) ([7d439b5](https://github.com/applitools/eyes.sdk.javascript1/commit/7d439b52af55f3b0596c9d35d6ba85c717448023))
|
|
123
|
+
* @applitools/ec-client bumped from 1.5.0 to 1.6.0
|
|
124
|
+
#### Features
|
|
125
|
+
|
|
126
|
+
* added support of regional execution cloud servers ([#1711](https://github.com/applitools/eyes.sdk.javascript1/issues/1711)) ([2e26c69](https://github.com/applitools/eyes.sdk.javascript1/commit/2e26c6944bb15f6121fb37c1dba95aba162c1f6a))
|
|
127
|
+
* support dns caching ([#1680](https://github.com/applitools/eyes.sdk.javascript1/issues/1680)) ([9bbff34](https://github.com/applitools/eyes.sdk.javascript1/commit/9bbff34f50c9d18758b55a6bcb45571ca1148180))
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
#### Bug Fixes
|
|
131
|
+
|
|
132
|
+
* fixed auto tunnel cleanup after unexpected end of the process ([3c1ad08](https://github.com/applitools/eyes.sdk.javascript1/commit/3c1ad0837d2d3560becc6d89370aa878becb3270))
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
* @applitools/tunnel-client bumped from 0.1.1 to 1.0.0
|
|
137
|
+
#### Features
|
|
138
|
+
|
|
139
|
+
* added binaries and made them available in jfrog ([92033fe](https://github.com/applitools/eyes.sdk.javascript1/commit/92033fed7edc58bbc4a4e37269068418fe3afc3d))
|
|
140
|
+
* release as 1.0.0 ([93bf312](https://github.com/applitools/eyes.sdk.javascript1/commit/93bf31205b07d19bc2cb4f50b974c7bad0f49cea))
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
* @applitools/ufg-client bumped from 1.2.22 to 1.3.0
|
|
145
|
+
#### Features
|
|
146
|
+
|
|
147
|
+
* support dns caching ([#1680](https://github.com/applitools/eyes.sdk.javascript1/issues/1680)) ([9bbff34](https://github.com/applitools/eyes.sdk.javascript1/commit/9bbff34f50c9d18758b55a6bcb45571ca1148180))
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
* @applitools/eyes bumped from 1.5.0 to 1.5.1
|
|
152
|
+
#### Bug Fixes
|
|
153
|
+
|
|
154
|
+
* fixed issue with getResults log appearing in console when file handler configured ([56b75c2](https://github.com/applitools/eyes.sdk.javascript1/commit/56b75c2185906c1581980985816a000c14000ac3))
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
#### Reverts
|
|
158
|
+
|
|
159
|
+
* revert removal of `nmgOptions` api ([b8d03c7](https://github.com/applitools/eyes.sdk.javascript1/commit/b8d03c77e8243397ecca233e46d56f7437d16df4))
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
* @applitools/spec-driver-webdriver bumped from 1.0.36 to 1.0.37
|
|
164
|
+
|
|
165
|
+
* @applitools/nml-client bumped from 1.5.0 to 1.5.1
|
|
166
|
+
|
|
167
|
+
* @applitools/screenshoter bumped from 3.8.1 to 3.8.2
|
|
168
|
+
|
|
169
|
+
|
|
15
170
|
## [3.34.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-cypress-v3.33.2...js/eyes-cypress@3.34.0) (2023-07-01)
|
|
16
171
|
|
|
17
172
|
|
|
@@ -48,7 +48,9 @@ function getViewportSize() {
|
|
|
48
48
|
const currWindow = cy.state('window');
|
|
49
49
|
const viewportSize = {
|
|
50
50
|
width: currWindow.innerWidth || currWindow.document.documentElement.clientWidth || currWindow.document.body.clientWidth,
|
|
51
|
-
height: currWindow.innerHeight ||
|
|
51
|
+
height: currWindow.innerHeight ||
|
|
52
|
+
currWindow.document.documentElement.clientHeight ||
|
|
53
|
+
currWindow.document.body.clientHeight,
|
|
52
54
|
};
|
|
53
55
|
return viewportSize;
|
|
54
56
|
}
|
|
@@ -59,7 +61,8 @@ function setViewportSize(vs) {
|
|
|
59
61
|
}
|
|
60
62
|
exports.setViewportSize = setViewportSize;
|
|
61
63
|
function transformSelector(selector) {
|
|
62
|
-
if (selector.hasOwnProperty('selector') &&
|
|
64
|
+
if (selector.hasOwnProperty('selector') &&
|
|
65
|
+
(!selector.hasOwnProperty('type') || selector.type === 'css')) {
|
|
63
66
|
return selector.selector;
|
|
64
67
|
}
|
|
65
68
|
return selector;
|
|
@@ -31,7 +31,7 @@ function transformCypressConfig(config) {
|
|
|
31
31
|
return {
|
|
32
32
|
open: {
|
|
33
33
|
apiKey: config.apiKey,
|
|
34
|
-
|
|
34
|
+
eyesServerUrl: config.serverUrl,
|
|
35
35
|
proxy: config.proxy,
|
|
36
36
|
appName: config.appName,
|
|
37
37
|
testName: config.testName,
|
|
@@ -56,6 +56,7 @@ function transformCypressConfig(config) {
|
|
|
56
56
|
environment: {
|
|
57
57
|
viewportSize: config.viewportSize,
|
|
58
58
|
},
|
|
59
|
+
isComponentTest: config.isComponentTest,
|
|
59
60
|
},
|
|
60
61
|
check: {
|
|
61
62
|
renderers: (0, utils_1.transformBrowsers)(config.browser),
|
package/dist/plugin/hooks.js
CHANGED
|
@@ -22,7 +22,7 @@ function makeGlobalRunHooks({ closeManager, closeBatches, closeUniversalServer,
|
|
|
22
22
|
if (!config.appliConfFile.dontCloseBatches) {
|
|
23
23
|
await closeBatches({
|
|
24
24
|
batchId: config.appliConfFile.batchId || config.appliConfFile.batch.id,
|
|
25
|
-
|
|
25
|
+
eyesServerUrl: config.appliConfFile.serverUrl,
|
|
26
26
|
proxy: config.appliConfFile.proxy,
|
|
27
27
|
apiKey: config.appliConfFile.apiKey,
|
|
28
28
|
});
|
|
@@ -85,7 +85,9 @@ function makePluginExport({ startServer, eyesConfig, }) {
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
return Object.assign({}, eyesConfig, { eyesPort: port }, moduleExportsResult
|
|
88
|
+
return Object.assign({}, eyesConfig, { eyesPort: port }, moduleExportsResult, {
|
|
89
|
+
isComponent: (cypressConfig === null || cypressConfig === void 0 ? void 0 : cypressConfig.testingType) === 'component',
|
|
90
|
+
});
|
|
89
91
|
// This piece of code exists because at the point of writing, Cypress does not support multiple event handlers:
|
|
90
92
|
// https://github.com/cypress-io/cypress/issues/5240#issuecomment-948277554
|
|
91
93
|
// So we wrap Cypress' `on` function in order to wrap the user-defined handler. This way we can call our own handler
|
package/dist/plugin/server.js
CHANGED
|
@@ -53,7 +53,7 @@ function makeStartServer({ logger, eyesConfig, config, }) {
|
|
|
53
53
|
logger.log('==> ', 'Core.logEvent');
|
|
54
54
|
socketWithUniversal.request('Core.logEvent', {
|
|
55
55
|
settings: {
|
|
56
|
-
|
|
56
|
+
eyesServerUrl: config.serverUrl ? config.serverUrl : PUBLIC_CLOUD,
|
|
57
57
|
apiKey: config.apiKey,
|
|
58
58
|
agentId: `eyes.cypress/${require('../../package.json').version}`,
|
|
59
59
|
proxy: config.proxy,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-cypress",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.35.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git://github.com/applitools/eyes.sdk.javascript1.git",
|
|
@@ -24,9 +24,8 @@
|
|
|
24
24
|
"scripts": {
|
|
25
25
|
"lint": "run --top-level eslint \"**/*.{js,ts}\"",
|
|
26
26
|
"build": "run --top-level tspc --project ./tsconfig.build.json",
|
|
27
|
-
"generate:tests": "
|
|
27
|
+
"generate:tests": "NODE_OPTIONS='--experimental-import-meta-resolve --experimental-loader=@applitools/generic/dist/code-loader.js' generic ./test/generic/config.mjs",
|
|
28
28
|
"test": "yarn test:unit && yarn test:it && yarn test:ts:compile && yarn test:e2e && yarn test:components && yarn test:coverage",
|
|
29
|
-
"test:sanity": "yarn test:unit && yarn test:it && yarn test:ts",
|
|
30
29
|
"test:unit": "run --top-level mocha --no-timeouts 'test/unit/**/*.test.js'",
|
|
31
30
|
"test:it": "run --top-level mocha --no-timeouts 'test/it/**/*.test.js'",
|
|
32
31
|
"test:ts": "yarn test:ts:compile && yarn test:ts:run",
|
|
@@ -43,7 +42,7 @@
|
|
|
43
42
|
"cypress12": "../../node_modules/cypress12/bin/cypress",
|
|
44
43
|
"test:ts:run:12": "yarn cypress12 run --project ./test/e2e/ts --config-file ./cypress-12.config.ts",
|
|
45
44
|
"test:ts:run": "yarn cypress$APPLITOOLS_FRAMEWORK_VERSION run --project ./test/e2e/ts --config-file ./cypress-$APPLITOOLS_FRAMEWORK_VERSION.config.ts",
|
|
46
|
-
"test:coverage": "
|
|
45
|
+
"test:coverage": "cd test/coverage && yarn && APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-cypress' APPLITOOLS_BATCH_ID=$(uuidgen) npx cypress run",
|
|
47
46
|
"test:e2e": "mkdir -p test/fixtures/testAppCopies && run --top-level mocha --no-timeouts 'test/e2e/**/*.test.js'",
|
|
48
47
|
"test:components": "cd test/components && yarn && npx cypress run --component",
|
|
49
48
|
"cypress": "cypress open --config-file test/fixtures/cypress-play.json",
|
|
@@ -55,10 +54,10 @@
|
|
|
55
54
|
"setup": "run --top-level xvfb:setup"
|
|
56
55
|
},
|
|
57
56
|
"dependencies": {
|
|
58
|
-
"@applitools/core": "3.
|
|
59
|
-
"@applitools/eyes": "1.
|
|
57
|
+
"@applitools/core": "3.6.6",
|
|
58
|
+
"@applitools/eyes": "1.6.6",
|
|
60
59
|
"@applitools/functional-commons": "1.6.0",
|
|
61
|
-
"@applitools/logger": "2.0.
|
|
60
|
+
"@applitools/logger": "2.0.7",
|
|
62
61
|
"@applitools/utils": "1.5.0",
|
|
63
62
|
"boxen": "5.1.2",
|
|
64
63
|
"chalk": "3.0.0",
|
|
@@ -68,8 +67,8 @@
|
|
|
68
67
|
},
|
|
69
68
|
"devDependencies": {
|
|
70
69
|
"@applitools/api-extractor": "^1.2.21",
|
|
71
|
-
"@applitools/bongo": "^4.
|
|
72
|
-
"@applitools/
|
|
70
|
+
"@applitools/bongo": "^5.4.2",
|
|
71
|
+
"@applitools/generic": "^3.3.5",
|
|
73
72
|
"@applitools/snaptdout": "1.0.1",
|
|
74
73
|
"@applitools/test-server": "^1.2.2",
|
|
75
74
|
"@applitools/test-utils": "^1.5.17",
|
package/src/browser/commands.js
CHANGED
|
@@ -138,7 +138,11 @@ Cypress.Commands.add('eyesOpen', function (args = {}) {
|
|
|
138
138
|
|
|
139
139
|
const appliConfFile = Cypress.config('appliConfFile')
|
|
140
140
|
const mergedConfig = mergeCypressConfigs({globalConfig: appliConfFile, openConfig: {testName, ...args}})
|
|
141
|
-
openAndGlobalConfig = transformCypressConfig({
|
|
141
|
+
openAndGlobalConfig = transformCypressConfig({
|
|
142
|
+
...mergedConfig,
|
|
143
|
+
shouldUseBrowserHooks,
|
|
144
|
+
isComponentTest: Cypress.config('isComponent'),
|
|
145
|
+
})
|
|
142
146
|
|
|
143
147
|
eyes = await socket.request('EyesManager.openEyes', {manager, target, config: openAndGlobalConfig})
|
|
144
148
|
})
|
|
@@ -47,8 +47,12 @@ export function getViewportSize(): {width: number; height: number} {
|
|
|
47
47
|
//@ts-ignore
|
|
48
48
|
const currWindow = cy.state('window')
|
|
49
49
|
const viewportSize = {
|
|
50
|
-
width:
|
|
51
|
-
|
|
50
|
+
width:
|
|
51
|
+
currWindow.innerWidth || currWindow.document.documentElement.clientWidth || currWindow.document.body.clientWidth,
|
|
52
|
+
height:
|
|
53
|
+
currWindow.innerHeight ||
|
|
54
|
+
currWindow.document.documentElement.clientHeight ||
|
|
55
|
+
currWindow.document.body.clientHeight,
|
|
52
56
|
}
|
|
53
57
|
return viewportSize
|
|
54
58
|
}
|
|
@@ -59,7 +63,10 @@ export function setViewportSize(vs: any): void {
|
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
export function transformSelector(selector: Selector): Selector {
|
|
62
|
-
if (
|
|
66
|
+
if (
|
|
67
|
+
selector.hasOwnProperty('selector') &&
|
|
68
|
+
(!selector.hasOwnProperty('type') || (selector as EyesSelector).type === 'css')
|
|
69
|
+
) {
|
|
63
70
|
return (selector as EyesSelector).selector
|
|
64
71
|
}
|
|
65
72
|
return selector
|
|
@@ -13,11 +13,16 @@ import type {
|
|
|
13
13
|
import type {CheckSettings, SpecType} from '@applitools/core'
|
|
14
14
|
import * as utils from '@applitools/utils'
|
|
15
15
|
import {transformBrowsers} from './utils'
|
|
16
|
-
type CodedRegion = MaybeArray<
|
|
16
|
+
type CodedRegion = MaybeArray<
|
|
17
|
+
Element | Selector | ElementWithOptions | SelectorWithOptions | LegacyRegion | EyesSelector
|
|
18
|
+
>
|
|
17
19
|
type Ref = {'applitools-ref-id': string}
|
|
18
20
|
type RefRegionWIthOptions = {region: Ref} & {padding?: number | LegacyRegion; regionId?: string}
|
|
19
21
|
|
|
20
|
-
export function transformCypressCheckSettings(
|
|
22
|
+
export function transformCypressCheckSettings(
|
|
23
|
+
settings: CypressCheckSettings,
|
|
24
|
+
refer: any,
|
|
25
|
+
): CheckSettings<SpecType, 'ufg'> {
|
|
21
26
|
if (utils.types.isString(settings)) {
|
|
22
27
|
return {name: settings}
|
|
23
28
|
}
|
|
@@ -7,7 +7,7 @@ export function transformCypressConfig(config: CypressEyesConfig): Config<SpecTy
|
|
|
7
7
|
return {
|
|
8
8
|
open: {
|
|
9
9
|
apiKey: config.apiKey,
|
|
10
|
-
|
|
10
|
+
eyesServerUrl: config.serverUrl,
|
|
11
11
|
proxy: config.proxy,
|
|
12
12
|
appName: config.appName,
|
|
13
13
|
testName: config.testName,
|
|
@@ -32,6 +32,7 @@ export function transformCypressConfig(config: CypressEyesConfig): Config<SpecTy
|
|
|
32
32
|
environment: {
|
|
33
33
|
viewportSize: config.viewportSize,
|
|
34
34
|
},
|
|
35
|
+
isComponentTest: config.isComponentTest,
|
|
35
36
|
},
|
|
36
37
|
check: {
|
|
37
38
|
renderers: transformBrowsers(config.browser),
|
package/src/browser/utils.ts
CHANGED
|
@@ -4,7 +4,9 @@ import type {CypressEyesConfig, MaybeArray, DeviceName, ScreenOrientationPlain}
|
|
|
4
4
|
import type {SpecType, Config} from '@applitools/core'
|
|
5
5
|
import type {Renderer} from '@applitools/core'
|
|
6
6
|
|
|
7
|
-
type CypressBrowser = MaybeArray<
|
|
7
|
+
type CypressBrowser = MaybeArray<
|
|
8
|
+
Renderer | {deviceName: DeviceName; screenOrientation?: ScreenOrientationPlain; name?: string}
|
|
9
|
+
>
|
|
8
10
|
|
|
9
11
|
export function transformBrowsers(browsers: CypressBrowser): Renderer[] {
|
|
10
12
|
if (!browsers) return
|
package/src/expose.ts
CHANGED
|
@@ -92,6 +92,8 @@ export type CypressEyesConfig = api.ConfigurationPlain<SpecType> & {
|
|
|
92
92
|
saveNewTests?: boolean
|
|
93
93
|
/** @internal */
|
|
94
94
|
shouldUseBrowserHooks?: boolean
|
|
95
|
+
/* @internal */
|
|
96
|
+
isComponentTest?: boolean
|
|
95
97
|
}
|
|
96
98
|
|
|
97
99
|
export type CypressTestResultsSummary = api.TestResultsSummary
|
|
@@ -10,7 +10,9 @@ export default function getErrorsAndDiffs(testResultsArr: any) {
|
|
|
10
10
|
} else {
|
|
11
11
|
if (testStatus === 'Unresolved') {
|
|
12
12
|
if (testResults.isNew) {
|
|
13
|
-
testResults.error = new Error(
|
|
13
|
+
testResults.error = new Error(
|
|
14
|
+
`${testResults.name}. Please approve the new baseline at ${testResults.url}`,
|
|
15
|
+
)
|
|
14
16
|
failed.push(testResults)
|
|
15
17
|
} else {
|
|
16
18
|
diffs.push(testResults)
|
package/src/plugin/hooks.ts
CHANGED
|
@@ -45,7 +45,7 @@ export default function makeGlobalRunHooks({
|
|
|
45
45
|
if (!config.appliConfFile.dontCloseBatches) {
|
|
46
46
|
await closeBatches({
|
|
47
47
|
batchId: config.appliConfFile.batchId || config.appliConfFile.batch.id,
|
|
48
|
-
|
|
48
|
+
eyesServerUrl: config.appliConfFile.serverUrl,
|
|
49
49
|
proxy: config.appliConfFile.proxy,
|
|
50
50
|
apiKey: config.appliConfFile.apiKey,
|
|
51
51
|
})
|
|
@@ -47,7 +47,10 @@ export default function makePluginExport({
|
|
|
47
47
|
} else {
|
|
48
48
|
// this is required because we are currently support cypress < 10
|
|
49
49
|
// in the version before 10 the `e2e.setupNodeEvents` and `component.setupNodeEvents` were not supported
|
|
50
|
-
const pluginAsCypress10PluginOptions = pluginInitArgs as {
|
|
50
|
+
const pluginAsCypress10PluginOptions = pluginInitArgs as {
|
|
51
|
+
e2e: {setupNodeEvents: any}
|
|
52
|
+
component: {setupNodeEvents: any}
|
|
53
|
+
}
|
|
51
54
|
if (pluginAsCypress10PluginOptions.component) {
|
|
52
55
|
pluginExportsComponent = pluginAsCypress10PluginOptions.component.setupNodeEvents
|
|
53
56
|
pluginAsCypress10PluginOptions.component.setupNodeEvents = setupNodeEvents
|
|
@@ -97,7 +100,9 @@ export default function makePluginExport({
|
|
|
97
100
|
}
|
|
98
101
|
}
|
|
99
102
|
|
|
100
|
-
return Object.assign({}, eyesConfig, {eyesPort: port}, moduleExportsResult
|
|
103
|
+
return Object.assign({}, eyesConfig, {eyesPort: port}, moduleExportsResult, {
|
|
104
|
+
isComponent: cypressConfig?.testingType === 'component',
|
|
105
|
+
})
|
|
101
106
|
|
|
102
107
|
// This piece of code exists because at the point of writing, Cypress does not support multiple event handlers:
|
|
103
108
|
// https://github.com/cypress-io/cypress/issues/5240#issuecomment-948277554
|
package/src/plugin/server.ts
CHANGED
|
@@ -75,7 +75,7 @@ export default function makeStartServer({
|
|
|
75
75
|
logger.log('==> ', 'Core.logEvent')
|
|
76
76
|
socketWithUniversal.request('Core.logEvent', {
|
|
77
77
|
settings: {
|
|
78
|
-
|
|
78
|
+
eyesServerUrl: config.serverUrl ? config.serverUrl : PUBLIC_CLOUD,
|
|
79
79
|
apiKey: config.apiKey,
|
|
80
80
|
agentId: `eyes.cypress/${require('../../package.json').version}`,
|
|
81
81
|
proxy: config.proxy,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../../../../commands'
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* @type {Cypress.PluginConfig}
|
|
17
17
|
*/
|
|
18
18
|
// eslint-disable-next-line no-unused-vars
|
|
19
|
-
module.exports = (
|
|
19
|
+
module.exports = (_on, _config) => {
|
|
20
20
|
// `on` is used to hook into various events Cypress emits
|
|
21
21
|
// `config` is the resolved Cypress config
|
|
22
22
|
}
|
package/types/expose.d.ts
CHANGED
|
@@ -25,7 +25,10 @@ export enum DeviceName {
|
|
|
25
25
|
Galaxy_S10 = 'Galaxy S10',
|
|
26
26
|
Galaxy_S10_Plus = 'Galaxy S10 Plus',
|
|
27
27
|
Galaxy_S20 = 'Galaxy S20',
|
|
28
|
+
Galaxy_S21 = 'Galaxy S21',
|
|
29
|
+
Galaxy_S21_Ultra = 'Galaxy S21 Ultra',
|
|
28
30
|
Galaxy_S22 = 'Galaxy S22',
|
|
31
|
+
Galaxy_S22_Ultra = 'Galaxy S22 Ultra',
|
|
29
32
|
Galaxy_Tab_S7 = 'Galaxy Tab S7',
|
|
30
33
|
iPad = 'iPad',
|
|
31
34
|
iPad_6th_Gen = 'iPad 6th Gen',
|
|
@@ -192,6 +195,7 @@ export type CypressCheckSettings = {
|
|
|
192
195
|
disableBrowserFetching?: boolean;
|
|
193
196
|
layoutBreakpoints?: boolean | Array<number> | { breakpoints: boolean | Array<number>; reload?: boolean; };
|
|
194
197
|
visualGridOptions?: { [key: string]: any; };
|
|
198
|
+
nmgOptions?: { [key: string]: any; };
|
|
195
199
|
useSystemScreenshot?: boolean;
|
|
196
200
|
hooks?: { beforeCaptureScreenshot: string; };
|
|
197
201
|
timeout?: number;
|
|
@@ -201,14 +205,14 @@ export type CypressCheckSettings = {
|
|
|
201
205
|
target?: "window" | "region";
|
|
202
206
|
selector?: Selector;
|
|
203
207
|
element?: Element;
|
|
204
|
-
ignore?: MaybeArray<string | LegacyRegion | { selector: string; type?: "css" | "xpath"; nodeType?: "element" | "shadow-root"; } | Element | SelectorWithOptions>;
|
|
205
|
-
layout?: MaybeArray<string | LegacyRegion | { selector: string; type?: "css" | "xpath"; nodeType?: "element" | "shadow-root"; } | Element | SelectorWithOptions>;
|
|
206
|
-
content?: MaybeArray<string | LegacyRegion | { selector: string; type?: "css" | "xpath"; nodeType?: "element" | "shadow-root"; } | Element | SelectorWithOptions>;
|
|
207
|
-
strict?: MaybeArray<string | LegacyRegion | { selector: string; type?: "css" | "xpath"; nodeType?: "element" | "shadow-root"; } | Element | SelectorWithOptions>;
|
|
208
|
+
ignore?: MaybeArray<string | LegacyRegion | { selector: string; type?: "css" | "xpath"; nodeType?: "element" | "shadow-root"; } | Element | ElementWithOptions | SelectorWithOptions>;
|
|
209
|
+
layout?: MaybeArray<string | LegacyRegion | { selector: string; type?: "css" | "xpath"; nodeType?: "element" | "shadow-root"; } | Element | ElementWithOptions | SelectorWithOptions>;
|
|
210
|
+
content?: MaybeArray<string | LegacyRegion | { selector: string; type?: "css" | "xpath"; nodeType?: "element" | "shadow-root"; } | Element | ElementWithOptions | SelectorWithOptions>;
|
|
211
|
+
strict?: MaybeArray<string | LegacyRegion | { selector: string; type?: "css" | "xpath"; nodeType?: "element" | "shadow-root"; } | Element | ElementWithOptions | SelectorWithOptions>;
|
|
208
212
|
floating?: FloatingRegion;
|
|
209
213
|
accessibility?: accessibilityRegion;
|
|
210
214
|
scriptHooks?: { beforeCaptureScreenshot: string; };
|
|
211
|
-
browser?: MaybeArray<{ name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Huawei Mate 50 Pro" | "Huawei Matepad 11"; screenOrientation?: ScreenOrientationPlain; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 14 Pro Max" | "iPhone 14" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad Pro (11-inch) (4th generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: ScreenOrientationPlain; }; } | { androidDeviceInfo: { deviceName: "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Pixel 6" | "Galaxy S20 Plus" | "Galaxy S21
|
|
215
|
+
browser?: MaybeArray<{ name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S21" | "Galaxy S21 Ultra" | "Galaxy S22" | "Galaxy S22 Ultra" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Huawei Mate 50 Pro" | "Huawei Matepad 11"; screenOrientation?: ScreenOrientationPlain; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 14 Pro Max" | "iPhone 14" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad Pro (11-inch) (4th generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: ScreenOrientationPlain; }; } | { androidDeviceInfo: { deviceName: "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S21" | "Galaxy S21 Ultra" | "Galaxy S22" | "Galaxy Tab S7" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Pixel 6" | "Galaxy S20 Plus" | "Galaxy S21 Plus" | "Galaxy S22 Plus" | "Galaxy Tab S8" | "Xiaomi Redmi Note 10 JE" | "Xiaomi Redmi Note 11" | "Xiaomi Redmi Note 11 Pro" | "Sony Xperia 1 II" | "Sony Xperia Ace II" | "Huawei P30 Lite"; version?: "latest" | "latest-1"; screenOrientation?: ScreenOrientationPlain; }; } | { deviceName: DeviceName; screenOrientation?: ScreenOrientationPlain; name?: string; }>;
|
|
212
216
|
};
|
|
213
217
|
export type CypressEyesConfig = {
|
|
214
218
|
debugScreenshots?: { save: boolean; path?: string; prefix?: string; };
|
|
@@ -331,12 +335,12 @@ export type CypressEyesConfig = {
|
|
|
331
335
|
rotation?: 0 | 270 | -270 | 180 | -180 | 90 | -90;
|
|
332
336
|
scaleRatio?: number;
|
|
333
337
|
concurrentSessions?: number;
|
|
334
|
-
browsersInfo?: Array<{ name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Huawei Mate 50 Pro" | "Huawei Matepad 11"; screenOrientation?: ScreenOrientationPlain; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 14 Pro Max" | "iPhone 14" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad Pro (11-inch) (4th generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: ScreenOrientationPlain; }; } | { androidDeviceInfo: { deviceName: "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Pixel 6" | "Galaxy S20 Plus" | "Galaxy S21
|
|
338
|
+
browsersInfo?: Array<{ name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S21" | "Galaxy S21 Ultra" | "Galaxy S22" | "Galaxy S22 Ultra" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Huawei Mate 50 Pro" | "Huawei Matepad 11"; screenOrientation?: ScreenOrientationPlain; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 14 Pro Max" | "iPhone 14" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad Pro (11-inch) (4th generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: ScreenOrientationPlain; }; } | { androidDeviceInfo: { deviceName: "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S21" | "Galaxy S21 Ultra" | "Galaxy S22" | "Galaxy Tab S7" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Pixel 6" | "Galaxy S20 Plus" | "Galaxy S21 Plus" | "Galaxy S22 Plus" | "Galaxy Tab S8" | "Xiaomi Redmi Note 10 JE" | "Xiaomi Redmi Note 11" | "Xiaomi Redmi Note 11 Pro" | "Sony Xperia 1 II" | "Sony Xperia Ace II" | "Huawei P30 Lite"; version?: "latest" | "latest-1"; screenOrientation?: ScreenOrientationPlain; }; }>;
|
|
335
339
|
visualGridOptions?: Record<string, any>;
|
|
336
340
|
layoutBreakpoints?: boolean | Array<number> | { breakpoints: boolean | Array<number>; reload?: boolean; };
|
|
337
341
|
disableBrowserFetching?: boolean;
|
|
338
342
|
waitBeforeCapture?: number;
|
|
339
|
-
browser?: MaybeArray<{ name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Huawei Mate 50 Pro" | "Huawei Matepad 11"; screenOrientation?: ScreenOrientationPlain; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 14 Pro Max" | "iPhone 14" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad Pro (11-inch) (4th generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: ScreenOrientationPlain; }; } | { androidDeviceInfo: { deviceName: "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Pixel 6" | "Galaxy S20 Plus" | "Galaxy S21
|
|
343
|
+
browser?: MaybeArray<{ name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S21" | "Galaxy S21 Ultra" | "Galaxy S22" | "Galaxy S22 Ultra" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Huawei Mate 50 Pro" | "Huawei Matepad 11"; screenOrientation?: ScreenOrientationPlain; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 14 Pro Max" | "iPhone 14" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad Pro (11-inch) (4th generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: ScreenOrientationPlain; }; } | { androidDeviceInfo: { deviceName: "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S21" | "Galaxy S21 Ultra" | "Galaxy S22" | "Galaxy Tab S7" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Pixel 6" | "Galaxy S20 Plus" | "Galaxy S21 Plus" | "Galaxy S22 Plus" | "Galaxy Tab S8" | "Xiaomi Redmi Note 10 JE" | "Xiaomi Redmi Note 11" | "Xiaomi Redmi Note 11 Pro" | "Sony Xperia 1 II" | "Sony Xperia Ace II" | "Huawei P30 Lite"; version?: "latest" | "latest-1"; screenOrientation?: ScreenOrientationPlain; }; } | { deviceName: DeviceName; screenOrientation?: ScreenOrientationPlain; name?: string; }>;
|
|
340
344
|
batchId?: string;
|
|
341
345
|
batchName?: string;
|
|
342
346
|
batchSequence?: string;
|
|
@@ -350,6 +354,7 @@ export type CypressEyesConfig = {
|
|
|
350
354
|
useDom?: boolean;
|
|
351
355
|
enablePatterns?: boolean;
|
|
352
356
|
scriptHooks?: { beforeCaptureScreenshot: string; };
|
|
357
|
+
isComponentTest?: boolean;
|
|
353
358
|
};
|
|
354
359
|
export type CypressTestResultsSummary = { getAllResults(): Array<{ getTestResults(): {
|
|
355
360
|
getId(): string;
|
|
@@ -461,7 +466,7 @@ export type CypressTestResultsSummary = { getAllResults(): Array<{ getTestResult
|
|
|
461
466
|
isPassed(): boolean;
|
|
462
467
|
delete(): Promise<void>;
|
|
463
468
|
deleteSession(): Promise<void>;
|
|
464
|
-
}; getException(): Error; getBrowserInfo(): { name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Huawei Mate 50 Pro" | "Huawei Matepad 11"; screenOrientation?: ScreenOrientationPlain; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 14 Pro Max" | "iPhone 14" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad Pro (11-inch) (4th generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: ScreenOrientationPlain; }; } | { androidDeviceInfo: { deviceName: "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Pixel 6" | "Galaxy S20 Plus" | "Galaxy S21
|
|
469
|
+
}; getException(): Error; getBrowserInfo(): { name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S21" | "Galaxy S21 Ultra" | "Galaxy S22" | "Galaxy S22 Ultra" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Huawei Mate 50 Pro" | "Huawei Matepad 11"; screenOrientation?: ScreenOrientationPlain; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 14 Pro Max" | "iPhone 14" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad Pro (11-inch) (4th generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: ScreenOrientationPlain; }; } | { androidDeviceInfo: { deviceName: "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S21" | "Galaxy S21 Ultra" | "Galaxy S22" | "Galaxy Tab S7" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Pixel 6" | "Galaxy S20 Plus" | "Galaxy S21 Plus" | "Galaxy S22 Plus" | "Galaxy Tab S8" | "Xiaomi Redmi Note 10 JE" | "Xiaomi Redmi Note 11" | "Xiaomi Redmi Note 11 Pro" | "Sony Xperia 1 II" | "Sony Xperia Ace II" | "Huawei P30 Lite"; version?: "latest" | "latest-1"; screenOrientation?: ScreenOrientationPlain; }; } | { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S21" | "Galaxy S21 Ultra" | "Galaxy S22" | "Galaxy S22 Ultra" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Huawei Mate 50 Pro" | "Huawei Matepad 11"; screenOrientation?: ScreenOrientationPlain; }; }>; [Symbol.iterator](): Iterator<{ getTestResults(): {
|
|
465
470
|
getId(): string;
|
|
466
471
|
setId(_id: string): void;
|
|
467
472
|
getName(): string;
|
|
@@ -571,7 +576,7 @@ export type CypressTestResultsSummary = { getAllResults(): Array<{ getTestResult
|
|
|
571
576
|
isPassed(): boolean;
|
|
572
577
|
delete(): Promise<void>;
|
|
573
578
|
deleteSession(): Promise<void>;
|
|
574
|
-
}; getException(): Error; getBrowserInfo(): { name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Huawei Mate 50 Pro" | "Huawei Matepad 11"; screenOrientation?: ScreenOrientationPlain; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 14 Pro Max" | "iPhone 14" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad Pro (11-inch) (4th generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: ScreenOrientationPlain; }; } | { androidDeviceInfo: { deviceName: "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Pixel 6" | "Galaxy S20 Plus" | "Galaxy S21
|
|
579
|
+
}; getException(): Error; getBrowserInfo(): { name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S21" | "Galaxy S21 Ultra" | "Galaxy S22" | "Galaxy S22 Ultra" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Huawei Mate 50 Pro" | "Huawei Matepad 11"; screenOrientation?: ScreenOrientationPlain; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 14 Pro Max" | "iPhone 14" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad Pro (11-inch) (4th generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: ScreenOrientationPlain; }; } | { androidDeviceInfo: { deviceName: "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S21" | "Galaxy S21 Ultra" | "Galaxy S22" | "Galaxy Tab S7" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Pixel 6" | "Galaxy S20 Plus" | "Galaxy S21 Plus" | "Galaxy S22 Plus" | "Galaxy Tab S8" | "Xiaomi Redmi Note 10 JE" | "Xiaomi Redmi Note 11" | "Xiaomi Redmi Note 11 Pro" | "Sony Xperia 1 II" | "Sony Xperia Ace II" | "Huawei P30 Lite"; version?: "latest" | "latest-1"; screenOrientation?: ScreenOrientationPlain; }; } | { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S21" | "Galaxy S21 Ultra" | "Galaxy S22" | "Galaxy S22 Ultra" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Sony Xperia 10 II" | "Huawei Mate 50 Pro" | "Huawei Matepad 11"; screenOrientation?: ScreenOrientationPlain; }; }, any, undefined>; };
|
|
575
580
|
export type EyesPluginConfig = {
|
|
576
581
|
tapDirPath: string;
|
|
577
582
|
tapFileName: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../../../../commands';
|
package/test/coverage/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
name: 'eyes-cypress',
|
|
3
|
-
ext: '.spec.js',
|
|
4
|
-
emitter: './test/coverage/emitter.js',
|
|
5
|
-
template: './test/coverage/template.hbs',
|
|
6
|
-
output: './test/coverage/generic/cypress/e2e/generic',
|
|
7
|
-
tests: 'https://raw.githubusercontent.com/applitools/sdk.coverage.tests/universal-sdk/coverage-tests.js',
|
|
8
|
-
overrides: [
|
|
9
|
-
'https://raw.githubusercontent.com/applitools/sdk.coverage.tests/universal-sdk/js/overrides.js',
|
|
10
|
-
'https://raw.githubusercontent.com/applitools/sdk.coverage.tests/universal-sdk/js/js-overrides.js',
|
|
11
|
-
...(process.env.APPLITOOLS_TEST_REMOTE === 'eg'
|
|
12
|
-
? ['https://raw.githubusercontent.com/applitools/sdk.coverage.tests/universal-sdk/eg.overrides.js']
|
|
13
|
-
: []),
|
|
14
|
-
'./test/coverage/overrides.js',
|
|
15
|
-
],
|
|
16
|
-
emitOnly: test => {
|
|
17
|
-
if (
|
|
18
|
-
test.api === 'classic' ||
|
|
19
|
-
(test.name.toLowerCase().includes('shadow') && test.name.toLowerCase().includes('dom'))
|
|
20
|
-
)
|
|
21
|
-
return false
|
|
22
|
-
return test.vg
|
|
23
|
-
},
|
|
24
|
-
}
|