@applitools/eyes-selenium 4.63.1 → 4.64.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 +18 -0
- package/README.md +18 -0
- package/dist/api.js +17 -20
- package/package.json +18 -38
- package/types/index.d.ts +407 -402
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,24 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
## 4.64.1 - 2023/3/22
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
- Added `Resize` value to `StitchMode` enum
|
|
15
|
+
- Improved extraction of nml element
|
|
16
|
+
### Bug fixes
|
|
17
|
+
- Avoid handing process when using execution cloud
|
|
18
|
+
- Fixed slowness during ufg tests
|
|
19
|
+
- Optimized number of requests during polling
|
|
20
|
+
|
|
21
|
+
## 4.64.0 - 2023/2/23
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
- Added new android devices Sony Xperia 1 II, Sony Xperia Ace II, Huawei P30 Lite, Xiaomi Redmi Note 10 JE
|
|
25
|
+
- Add NML support for Android
|
|
26
|
+
- Crop screenshot image base on account info
|
|
27
|
+
### Bug fixes
|
|
28
|
+
|
|
11
29
|
## 4.63.1 - 2023/1/23
|
|
12
30
|
|
|
13
31
|
### Features
|
package/README.md
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
- [Tag (`withName`)](#tag-withname)
|
|
31
31
|
- [Variation group ID](#variation-group-id)
|
|
32
32
|
- [Lazy loading (`lazyLoad`)](#lazy-loading-lazyload)
|
|
33
|
+
- [Density metrics](#density-metrics-densitymetrics)
|
|
33
34
|
- [Other checkSettings configuration](#other-checksettings-configuration)
|
|
34
35
|
- [close](#close)
|
|
35
36
|
- [Runners](#runners)
|
|
@@ -409,6 +410,23 @@ Other details:
|
|
|
409
410
|
- The SDK will repeatedly scroll the page using the `scrollLength` until either the page cannot be scrolled further or the `maxAmountToScroll` has been reached (whichever happens first)
|
|
410
411
|
- If more time is needed for additional content to load, then increase the waitingTime to a value higher than 500 milliseconds. If better performance is desired and additional content lazily loads faster than the default waitingTime, then reduce it to a value below 500 milliseconds
|
|
411
412
|
|
|
413
|
+
##### Density metrics (`densityMetrics`)
|
|
414
|
+
|
|
415
|
+
In order to set the density metrics for the screenshot, use the `densityMetrics` method. This method accepts a object value with the following properties:
|
|
416
|
+
|
|
417
|
+
- `xdpi` - The exact physical pixels per inch of the screen in the X dimension.
|
|
418
|
+
- `ydpi` - The exact physical pixels per inch of the screen in the Y dimension.
|
|
419
|
+
- `scaleRatio` - The scale ratio.
|
|
420
|
+
|
|
421
|
+
```js
|
|
422
|
+
// set density metrics
|
|
423
|
+
eyes.check(Target.window().densityMetrics({
|
|
424
|
+
xdpi: 100,
|
|
425
|
+
ydpi: 100,
|
|
426
|
+
scaleRatio: 1
|
|
427
|
+
}))
|
|
428
|
+
```
|
|
429
|
+
|
|
412
430
|
###### Other checkSettings configuration
|
|
413
431
|
|
|
414
432
|
<!-- TODO add explanation -->
|
package/dist/api.js
CHANGED
|
@@ -26,33 +26,30 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.closeBatch = exports.BatchClose = exports.Target = exports.
|
|
30
|
-
const
|
|
31
|
-
const api = __importStar(require("@applitools/eyes-api"));
|
|
29
|
+
exports.closeBatch = exports.BatchClose = exports.Configuration = exports.Target = exports.TargetAutomation = exports.CheckSettings = exports.CheckSettingsAutomation = exports.Eyes = void 0;
|
|
30
|
+
const eyes = __importStar(require("@applitools/eyes"));
|
|
32
31
|
const spec = __importStar(require("@applitools/spec-driver-selenium"));
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
});
|
|
37
|
-
__exportStar(require("@applitools/eyes-api"), exports);
|
|
38
|
-
class Eyes extends api.Eyes {
|
|
32
|
+
__exportStar(require("@applitools/eyes"), exports);
|
|
33
|
+
const sdk = { agentId: `eyes.selenium/${require('../package.json').version}`, spec };
|
|
34
|
+
class Eyes extends eyes.Eyes {
|
|
39
35
|
}
|
|
40
36
|
exports.Eyes = Eyes;
|
|
41
|
-
Eyes.
|
|
42
|
-
class
|
|
43
|
-
}
|
|
44
|
-
exports.Configuration = Configuration;
|
|
45
|
-
Configuration._spec = sdk;
|
|
46
|
-
class CheckSettingsAutomation extends api.CheckSettingsAutomation {
|
|
37
|
+
Eyes._sdk = sdk;
|
|
38
|
+
class CheckSettingsAutomation extends eyes.CheckSettingsAutomation {
|
|
47
39
|
}
|
|
48
40
|
exports.CheckSettingsAutomation = CheckSettingsAutomation;
|
|
49
|
-
CheckSettingsAutomation._spec =
|
|
41
|
+
CheckSettingsAutomation._spec = spec;
|
|
50
42
|
class CheckSettings extends CheckSettingsAutomation {
|
|
51
43
|
}
|
|
52
44
|
exports.CheckSettings = CheckSettings;
|
|
53
|
-
exports.
|
|
54
|
-
|
|
45
|
+
exports.TargetAutomation = { ...eyes.TargetAutomation, spec };
|
|
46
|
+
exports.Target = { ...eyes.Target, spec };
|
|
47
|
+
class Configuration extends eyes.Configuration {
|
|
48
|
+
}
|
|
49
|
+
exports.Configuration = Configuration;
|
|
50
|
+
Configuration._spec = spec;
|
|
51
|
+
class BatchClose extends eyes.BatchClose {
|
|
55
52
|
}
|
|
56
53
|
exports.BatchClose = BatchClose;
|
|
57
|
-
BatchClose.
|
|
58
|
-
exports.closeBatch =
|
|
54
|
+
BatchClose._sdk = sdk;
|
|
55
|
+
exports.closeBatch = eyes.closeBatch(sdk);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-selenium",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.64.1",
|
|
4
4
|
"description": "Applitools Eyes SDK for Selenium WebDriver",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eyes-selenium",
|
|
@@ -41,58 +41,38 @@
|
|
|
41
41
|
"types"
|
|
42
42
|
],
|
|
43
43
|
"scripts": {
|
|
44
|
-
"lint": "eslint '**/*.ts'",
|
|
45
|
-
"build": "ttsc",
|
|
44
|
+
"lint": "node ../../node_modules/.bin/eslint '**/*.ts'",
|
|
45
|
+
"build": "node ../../node_modules/.bin/ttsc --project ./tsconfig.build.json",
|
|
46
46
|
"generate:tests": "coverage-tests generate https://raw.githubusercontent.com/applitools/sdk.coverage.tests/universal-sdk/js/config.js --name 'eyes-selenium'",
|
|
47
47
|
"test": "yarn test:coverage",
|
|
48
|
+
"test:coverage": "yarn generate:tests && APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-selenium' APPLITOOLS_BATCH_ID=$(uuidgen) MOCHA_GROUP=coverage node ../../node_modules/.bin/mocha './test/generic/*.spec.js' -r @applitools/test-utils/mocha-hooks/docker --parallel --jobs ${MOCHA_JOBS:-15} --exit",
|
|
48
49
|
"test:sanity": "echo 'create sanity suite'",
|
|
49
|
-
"
|
|
50
|
-
"report": "coverage-tests report https://raw.githubusercontent.com/applitools/sdk.coverage.tests/master/js/config.js --name 'eyes-selenium'",
|
|
50
|
+
"report": "bongo report --name 'js_selenium_4'",
|
|
51
51
|
"setup": "yarn docker:setup",
|
|
52
|
-
"docker:setup": "node
|
|
52
|
+
"docker:setup": "node ../../scripts/generate-docker-compose-config.js && docker-compose up -d",
|
|
53
53
|
"docker:teardown": "docker-compose down",
|
|
54
54
|
"upgrade:framework": "if [ ! -z $APPLITOOLS_SELENIUM_MAJOR_VERSION ]; then packagejson=`cat package.json`; yarn upgrade --no-lockfile selenium-webdriver@$APPLITOOLS_SELENIUM_MAJOR_VERSION; echo \"$packagejson\" > package.json; fi",
|
|
55
55
|
"deps": "bongo deps",
|
|
56
|
-
"gh:test": "gh workflow run test.yml --ref $(git rev-parse --abbrev-ref HEAD) -f packages='selenium selenium@3' -f links='types test-utils
|
|
56
|
+
"gh:test": "gh workflow run test.yml --ref $(git rev-parse --abbrev-ref HEAD) -f packages='selenium selenium@3' -f links='types test-utils eyes-sdk-core visual-grid-client eyes spec-driver-selenium utils driver snippets screenshoter'",
|
|
57
57
|
"gh:publish": "gh workflow run publish-selenium.yml --ref $(git rev-parse --abbrev-ref HEAD)",
|
|
58
|
-
"preversion": "bongo preversion --verifyPendingChanges
|
|
58
|
+
"preversion": "bongo preversion --verifyPendingChanges",
|
|
59
59
|
"version": "bongo version --withPendingChanges",
|
|
60
|
-
"postversion": "bongo postversion"
|
|
61
|
-
|
|
62
|
-
"husky": {
|
|
63
|
-
"hooks": {
|
|
64
|
-
"pre-push": "yarn bongo lint"
|
|
65
|
-
}
|
|
60
|
+
"postversion": "bongo postversion",
|
|
61
|
+
"postpublish": "bongo send-release-notification --name 'js_selenium_4'"
|
|
66
62
|
},
|
|
67
63
|
"dependencies": {
|
|
68
|
-
"@applitools/
|
|
69
|
-
"@applitools/
|
|
70
|
-
"@applitools/spec-driver-selenium": "1.5.23"
|
|
64
|
+
"@applitools/eyes": "1.0.2",
|
|
65
|
+
"@applitools/spec-driver-selenium": "1.5.34"
|
|
71
66
|
},
|
|
72
67
|
"devDependencies": {
|
|
73
|
-
"@applitools/api-extractor": "1.2.
|
|
74
|
-
"@applitools/bongo": "^
|
|
75
|
-
"@applitools/
|
|
76
|
-
"@applitools/
|
|
77
|
-
"@
|
|
78
|
-
"@applitools/test-utils": "1.5.8",
|
|
79
|
-
"@types/node": "12",
|
|
68
|
+
"@applitools/api-extractor": "1.2.12",
|
|
69
|
+
"@applitools/bongo": "^3.0.2",
|
|
70
|
+
"@applitools/sdk-coverage-tests": "3.0.0",
|
|
71
|
+
"@applitools/test-utils": "1.5.14",
|
|
72
|
+
"@types/node": "^12.20.55",
|
|
80
73
|
"@types/selenium-webdriver": "^4.1.1",
|
|
81
|
-
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
|
82
|
-
"@typescript-eslint/parser": "^5.27.0",
|
|
83
74
|
"chromedriver": "105.0.1",
|
|
84
|
-
"
|
|
85
|
-
"eslint-config-prettier": "^8.5.0",
|
|
86
|
-
"eslint-plugin-mocha-no-only": "^1.1.1",
|
|
87
|
-
"eslint-plugin-node": "^11.1.0",
|
|
88
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
89
|
-
"husky": "^4.3.8",
|
|
90
|
-
"mocha": "^9.2.2",
|
|
91
|
-
"prettier": "^2.6.2",
|
|
92
|
-
"selenium-webdriver": "4.4.0",
|
|
93
|
-
"spec-xunit-file": "0.0.1-3",
|
|
94
|
-
"ttypescript": "^1.5.13",
|
|
95
|
-
"typescript": "^4.7.2"
|
|
75
|
+
"selenium-webdriver": "4.4.0"
|
|
96
76
|
},
|
|
97
77
|
"peerDependencies": {
|
|
98
78
|
"selenium-webdriver": ">=3.6.0"
|