@applitools/eyes-selenium 4.63.0 → 4.64.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
@@ -8,6 +8,20 @@
8
8
 
9
9
 
10
10
 
11
+ ## 4.64.0 - 2023/2/23
12
+
13
+ ### Features
14
+ - Added new android devices Sony Xperia 1 II, Sony Xperia Ace II, Huawei P30 Lite, Xiaomi Redmi Note 10 JE
15
+ - Add NML support for Android
16
+ - Crop screenshot image base on account info
17
+ ### Bug fixes
18
+
19
+ ## 4.63.1 - 2023/1/23
20
+
21
+ ### Features
22
+ ### Bug fixes
23
+ - Fixed issue with sessionId on ufg
24
+
11
25
  ## 4.63.0 - 2023/1/23
12
26
 
13
27
  ### 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-selenium",
3
- "version": "4.63.0",
3
+ "version": "4.64.0",
4
4
  "description": "Applitools Eyes SDK for Selenium WebDriver",
5
5
  "keywords": [
6
6
  "eyes-selenium",
@@ -41,58 +41,40 @@
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
48
  "test:sanity": "echo 'create sanity suite'",
49
- "test:coverage": "yarn generate:tests && APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-selenium' APPLITOOLS_BATCH_ID=$(uuidgen) XUNIT_FILE=coverage-test-report.xml mocha --config .mocharc.cvg.js",
49
+ "test:coverage": "yarn generate:tests && APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-selenium' APPLITOOLS_BATCH_ID=$(uuidgen) mocha --config .mocharc.cvg.js",
50
50
  "report": "coverage-tests report https://raw.githubusercontent.com/applitools/sdk.coverage.tests/master/js/config.js --name 'eyes-selenium'",
51
51
  "setup": "yarn docker:setup",
52
- "docker:setup": "node ../scripts/scripts/generate-docker-compose-config.js && docker-compose up -d",
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 sdk-shared eyes-sdk-core visual-grid-client eyes-api spec-driver-selenium utils driver snippets screenshoter'",
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-api 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 && yarn build",
58
+ "preversion": "bongo preversion --verifyPendingChanges",
59
59
  "version": "bongo version --withPendingChanges",
60
60
  "postversion": "bongo postversion"
61
61
  },
62
- "husky": {
63
- "hooks": {
64
- "pre-push": "yarn bongo lint"
65
- }
66
- },
67
62
  "dependencies": {
68
- "@applitools/core": "1.4.2",
69
- "@applitools/eyes-api": "1.12.2",
70
- "@applitools/spec-driver-selenium": "1.5.23"
63
+ "@applitools/core": "2.3.7",
64
+ "@applitools/eyes-api": "1.13.7",
65
+ "@applitools/spec-driver-selenium": "1.5.31"
71
66
  },
72
67
  "devDependencies": {
73
68
  "@applitools/api-extractor": "1.2.11",
74
- "@applitools/bongo": "^2.2.2",
75
- "@applitools/scripts": "1.2.0",
69
+ "@applitools/bongo": "^2.2.5",
76
70
  "@applitools/sdk-coverage-tests": "2.7.10",
77
- "@applitools/sdk-shared": "0.9.15",
78
- "@applitools/test-utils": "1.5.8",
71
+ "@applitools/test-utils": "1.5.12",
79
72
  "@types/node": "12",
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
- "eslint": "^8.16.0",
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
75
  "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"
76
+ "mocha-multi": "^1.1.7",
77
+ "selenium-webdriver": "4.4.0"
96
78
  },
97
79
  "peerDependencies": {
98
80
  "selenium-webdriver": ">=3.6.0"