@applitools/eyes-webdriverio 5.44.2 → 5.44.4

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
@@ -1,14 +1,24 @@
1
- # Change Log
2
-
3
- ## Unreleased
1
+ # Changelog
4
2
 
3
+ ## [5.44.4](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-webdriverio@5.44.3...js/eyes-webdriverio@5.44.4) (2023-06-15)
5
4
 
6
5
 
6
+ ### Dependencies
7
7
 
8
+ * update some dependencies
9
+ * The following workspace dependencies were updated
10
+ * dependencies
11
+ * @applitools/eyes bumped from 1.2.16 to 1.2.17
8
12
 
13
+ ## [5.44.3](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-webdriverio-v5.44.2...js/eyes-webdriverio@5.44.3) (2023-06-14)
9
14
 
10
15
 
16
+ ### Dependencies
11
17
 
18
+ * update some dependencies
19
+ * The following workspace dependencies were updated
20
+ * dependencies
21
+ * @applitools/eyes bumped from 1.2.14 to 1.2.16
12
22
 
13
23
  ## 5.44.2 - 2023/6/1
14
24
 
@@ -948,6 +958,4 @@
948
958
  - This changelog file.
949
959
  ### Fixed
950
960
  - Imports from SDK-core.
951
- - Automatic dependency update for patch versions only.
952
-
953
-
961
+ - Automatic dependency update for patch versions only.
package/dist/api.js CHANGED
@@ -34,12 +34,12 @@ __exportStar(require("./legacy"), exports);
34
34
  const sdk = { agentId: `eyes-webdriverio/${require('../package.json').version}`, spec };
35
35
  class Eyes extends eyes.Eyes {
36
36
  }
37
- Eyes._sdk = sdk;
38
37
  exports.Eyes = Eyes;
38
+ Eyes._sdk = sdk;
39
39
  class CheckSettingsAutomation extends eyes.CheckSettingsAutomation {
40
40
  }
41
- CheckSettingsAutomation._spec = spec;
42
41
  exports.CheckSettingsAutomation = CheckSettingsAutomation;
42
+ CheckSettingsAutomation._spec = spec;
43
43
  class CheckSettings extends CheckSettingsAutomation {
44
44
  }
45
45
  exports.CheckSettings = CheckSettings;
@@ -47,10 +47,10 @@ exports.TargetAutomation = { ...eyes.TargetAutomation, spec };
47
47
  exports.Target = { ...eyes.Target, spec };
48
48
  class Configuration extends eyes.Configuration {
49
49
  }
50
- Configuration._spec = spec;
51
50
  exports.Configuration = Configuration;
51
+ Configuration._spec = spec;
52
52
  class BatchClose extends eyes.BatchClose {
53
53
  }
54
- BatchClose._sdk = sdk;
55
54
  exports.BatchClose = BatchClose;
55
+ BatchClose._sdk = sdk;
56
56
  exports.closeBatch = eyes.closeBatch(sdk);
package/dist/service.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  const api_1 = require("./api");
4
- if (!process.env.APPLITOOLS_WEBDRIVERIO_MAJOR_VERSION) {
4
+ if (!process.env.APPLITOOLS_FRAMEWORK_MAJOR_VERSION) {
5
5
  try {
6
- const version = (_a = process.env.APPLITOOLS_WEBDRIVERIO_VERSION) !== null && _a !== void 0 ? _a : require('webdriverio/package.json').version;
6
+ const version = (_a = process.env.APPLITOOLS_FRAMEWORK_VERSION) !== null && _a !== void 0 ? _a : require('webdriverio/package.json').version;
7
7
  const [major] = version.split('.', 1);
8
- process.env.APPLITOOLS_WEBDRIVERIO_MAJOR_VERSION = major;
8
+ process.env.APPLITOOLS_FRAMEWORK_MAJOR_VERSION = major;
9
9
  }
10
10
  catch {
11
11
  // NOTE: ignore error
@@ -19,7 +19,7 @@ EyesOverride._sdk = {
19
19
  };
20
20
  class EyesService {
21
21
  constructor({ useVisualGrid, concurrency, eyes, ...config }) {
22
- const wdioMajorVersion = Number(process.env.APPLITOOLS_WEBDRIVERIO_MAJOR_VERSION);
22
+ const wdioMajorVersion = Number(process.env.APPLITOOLS_FRAMEWORK_MAJOR_VERSION);
23
23
  config = wdioMajorVersion < 6 ? { ...eyes } : config;
24
24
  if (!useVisualGrid)
25
25
  config.hideScrollbars = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-webdriverio",
3
- "version": "5.44.2",
3
+ "version": "5.44.4",
4
4
  "description": "Applitools Eyes SDK for WebdriverIO",
5
5
  "keywords": [
6
6
  "eyes-webdriverio",
@@ -27,10 +27,6 @@
27
27
  "name": "Applitools Team",
28
28
  "email": "team@applitools.com"
29
29
  },
30
- "aliases": [
31
- "webdriverio",
32
- "wdio"
33
- ],
34
30
  "main": "./dist/index.js",
35
31
  "types": "./types/index.d.ts",
36
32
  "exports": {
@@ -88,53 +84,44 @@
88
84
  "types"
89
85
  ],
90
86
  "scripts": {
91
- "lint": "node ../../node_modules/.bin/eslint '**/*.ts'",
92
- "build": "node ../../node_modules/.bin/tspc --project tsconfig.build.v$([ ! -z $APPLITOOLS_WEBDRIVERIO_VERSION ] && echo ${APPLITOOLS_WEBDRIVERIO_VERSION%%.*} || echo 8).json",
87
+ "lint": "run --top-level eslint '**/*.ts'",
88
+ "build": "run --top-level tspc --project tsconfig.build.v$([ ! -z $APPLITOOLS_FRAMEWORK_VERSION ] && echo $APPLITOOLS_FRAMEWORK_VERSION | cut -f1 -d'.' || echo 8).json",
93
89
  "generate:tests": "coverage-tests generate https://raw.githubusercontent.com/applitools/sdk.coverage.tests/universal-sdk/js/config.js --name 'eyes.webdriverio.javascript5'",
94
90
  "test": "yarn test:service && yarn test:coverage",
95
- "test:service": "MOCHA_GROUP=service node ../../node_modules/.bin/mocha './test/service/unit/*.spec.js' && wdio run ./test/service/wdio.conf.js && wdio run ./test/service/no-config/wdio.no-config.conf.js && wdio run ./test/service/vg/wdio.vg.conf.js",
96
- "test:coverage": "yarn generate:tests && APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-webdriverio' APPLITOOLS_BATCH_ID=$(uuidgen) MOCHA_GROUP=coverage node ../../node_modules/.bin/mocha './test/generic/*.spec.js' --parallel --jobs ${MOCHA_JOBS:-15} --exit",
97
- "test:coverage:wd": "APPLITOOLS_WEBDRIVERIO_PROTOCOL=wd yarn test:coverage",
98
- "test:coverage:cdp": "APPLITOOLS_WEBDRIVERIO_PROTOCOL=cdp yarn test:coverage",
91
+ "test:service": "MOCHA_GROUP=service run --top-level mocha './test/service/unit/*.spec.js' && wdio run ./test/service/wdio.conf.js && wdio run ./test/service/no-config/wdio.no-config.conf.js && wdio run ./test/service/vg/wdio.vg.conf.js",
92
+ "test:coverage": "yarn generate:tests && APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-webdriverio' APPLITOOLS_BATCH_ID=$(uuidgen) MOCHA_GROUP=coverage run --top-level mocha './test/generic/*.spec.js' --parallel --jobs ${MOCHA_JOBS:-15} --exit",
93
+ "setup": "run --top-level browsers:setup",
94
+ "up:framework": "run --top-level add-silent webdriverio",
99
95
  "report": "bongo report --name 'js_wdio_5'",
100
- "test:sanity": "echo 'create sanity suite'",
101
- "setup": "yarn docker:setup",
102
- "docker:setup": "node ../../scripts/generate-docker-compose-config.js && docker-compose up -d",
103
- "docker:teardown": "docker-compose down",
104
- "upgrade:framework": "if [ ! -z $APPLITOOLS_WEBDRIVERIO_VERSION ]; then packagejson=`cat package.json`; NODE_VERSION=${NODE_VERSION:-$(node -v)} yarn upgrade --no-lockfile webdriverio@$APPLITOOLS_WEBDRIVERIO_VERSION @types/node@${NODE_VERSION%%.*}; echo \"$packagejson\" > package.json; fi",
105
- "deps": "bongo deps",
106
- "gh:test": "gh workflow run test.yml --ref $(git rev-parse --abbrev-ref HEAD) -f packages='wdio wdio(node:14) wdio(node:12) wdio(protocol:cdp) wdio(framework:6) wdio(framework:5)'",
107
- "gh:test:links": "gh workflow run test.yml --ref $(git rev-parse --abbrev-ref HEAD) -f packages='wdio wdio+cdp wdio@6 wdio@5' -f links='types test-utils eyes-sdk-core visual-grid-client eyes spec-driver-webdriverio utils driver snippets screenshoter'",
108
- "gh:publish": "gh workflow run publish-webdriverio.yml --ref $(git rev-parse --abbrev-ref HEAD)",
109
- "preversion": "bongo preversion --verifyPendingChanges",
110
- "version": "bongo version --withPendingChanges",
111
- "postversion": "bongo postversion",
112
- "postpublish": "bongo send-release-notification --name 'js_wdio_5'"
96
+ "notify": "dlx --package @applitools/bongo bongo send-release-notification --name 'js_wdio_5'"
113
97
  },
114
98
  "dependencies": {
115
- "@applitools/eyes": "1.2.14",
99
+ "@applitools/eyes": "1.2.17",
116
100
  "@applitools/spec-driver-webdriverio": "1.5.2"
117
101
  },
118
102
  "devDependencies": {
119
- "@applitools/api-extractor": "1.2.21",
103
+ "@applitools/api-extractor": "^1.2.21",
120
104
  "@applitools/bongo": "^4.0.0",
121
105
  "@applitools/sdk-coverage-tests": "^3.0.2",
122
- "@applitools/test-utils": "1.5.17",
106
+ "@applitools/test-utils": "^1.5.17",
123
107
  "@types/node": "^16.18.14",
124
108
  "@wdio/cli": "^8.3.9",
125
109
  "@wdio/dot-reporter": "^8.3.0",
126
110
  "@wdio/globals": "^8.3.9",
127
111
  "@wdio/local-runner": "^8.3.9",
128
112
  "@wdio/mocha-framework": "^8.3.0",
129
- "chromedriver": "^111.0.0",
113
+ "chromedriver": "^114.0.1",
130
114
  "expect-webdriverio": "^4.0.1",
131
115
  "geckodriver": "^1.20.0",
132
- "webdriverio": "^8.3.9"
116
+ "webdriverio": "^8.10.7"
133
117
  },
134
118
  "peerDependencies": {
135
119
  "webdriverio": ">=5.0.0"
136
120
  },
137
121
  "engines": {
138
122
  "node": ">=12.13.0"
123
+ },
124
+ "publishConfig": {
125
+ "access": "public"
139
126
  }
140
- }
127
+ }
package/types/index.d.ts CHANGED
@@ -872,7 +872,7 @@ export enum AndroidVersion {
872
872
  LATEST = 'latest',
873
873
  ONE_VERSION_BACK = 'latest-1'
874
874
  }
875
- export type MatchLevelPlain = "None" | "Layout1" | "Layout" | "Layout2" | "Content" | "IgnoreColors" | "Strict" | "Exact";
875
+ export type MatchLevelPlain = "Strict" | "None" | "Layout1" | "Layout" | "Layout2" | "Content" | "IgnoreColors" | "Exact";
876
876
  export enum MatchLevel {
877
877
  None = 'None',
878
878
  LegacyLayout = 'Layout1',
@@ -994,7 +994,7 @@ export class BatchInfo implements Required<BatchInfoPlain> {
994
994
  export type CheckSettingsImagePlain = {
995
995
  name?: undefined | string;
996
996
  region?: undefined | RegionPlain;
997
- matchLevel?: undefined | "None" | "Layout1" | "Layout" | "Layout2" | "Content" | "IgnoreColors" | "Strict" | "Exact";
997
+ matchLevel?: undefined | "Strict" | "None" | "Layout1" | "Layout" | "Layout2" | "Content" | "IgnoreColors" | "Exact";
998
998
  useDom?: undefined | boolean;
999
999
  sendDom?: undefined | boolean;
1000
1000
  enablePatterns?: undefined | boolean;
@@ -1255,7 +1255,7 @@ export class FloatingMatchSettings implements Required<FloatingMatchSettingsPlai
1255
1255
  }
1256
1256
  export type ImageMatchSettingsPlain = {
1257
1257
  exact?: undefined | ExactMatchSettingsPlain;
1258
- matchLevel?: undefined | "None" | "Layout1" | "Layout" | "Layout2" | "Content" | "IgnoreColors" | "Strict" | "Exact";
1258
+ matchLevel?: undefined | "Strict" | "None" | "Layout1" | "Layout" | "Layout2" | "Content" | "IgnoreColors" | "Exact";
1259
1259
  ignoreCaret?: undefined | boolean;
1260
1260
  useDom?: undefined | boolean;
1261
1261
  enablePatterns?: undefined | boolean;