@applitools/eyes-webdriverio 5.34.3 → 5.34.7

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
@@ -3,6 +3,27 @@
3
3
  ## Unreleased
4
4
 
5
5
 
6
+ ## 5.34.7 - 2022/1/5
7
+
8
+ - updated to @applitools/spec-driver-webdriverio@1.2.6 (from 1.2.5)
9
+
10
+ ## 5.34.6 - 2021/12/23
11
+
12
+ - updated to @applitools/eyes-sdk-core@12.24.9 (from 12.24.7)
13
+ - updated to @applitools/visual-grid-client@15.8.55 (from 15.8.53)
14
+
15
+ ## 5.34.5 - 2021/12/20
16
+
17
+ - updated to @applitools/eyes-sdk-core@12.24.7 (from 12.24.6)
18
+ - updated to @applitools/spec-driver-webdriverio@1.2.3 (from 1.2.2)
19
+ - updated to @applitools/visual-grid-client@15.8.53 (from 15.8.52)
20
+ - updated to @applitools/spec-driver-webdriverio@1.2.5 (from 1.2.3)
21
+
22
+ ## 5.34.4 - 2021/12/17
23
+
24
+ - updated to @applitools/eyes-sdk-core@12.24.6 (from 12.24.5)
25
+ - updated to @applitools/visual-grid-client@15.8.52 (from 15.8.49)
26
+
6
27
  ## 5.34.3 - 2021/12/7
7
28
 
8
29
  - updated to @applitools/eyes-sdk-core@12.24.5 (from 12.24.2)
package/dist/api.js CHANGED
@@ -30,7 +30,6 @@ const sdk = (0, eyes_sdk_core_1.makeSDK)({
30
30
  name: 'eyes-webdriverio',
31
31
  version: require('../package.json').version,
32
32
  spec,
33
- cwd: process.cwd(),
34
33
  VisualGridClient: require('@applitools/visual-grid-client'),
35
34
  });
36
35
  __exportStar(require("@applitools/eyes-api"), exports);
package/dist/service.js CHANGED
@@ -45,7 +45,6 @@ const sdk = (0, eyes_sdk_core_1.makeSDK)({
45
45
  name: 'eyes-webdriverio-service',
46
46
  version: require('../package.json').version,
47
47
  spec,
48
- cwd: process.cwd(),
49
48
  VisualGridClient: require('@applitools/visual-grid-client'),
50
49
  });
51
50
  class EyesOverride extends api_1.Eyes {
@@ -60,6 +59,17 @@ class EyesService {
60
59
  config.hideScrollbars = true;
61
60
  this._eyes = new EyesOverride(useVisualGrid ? new api_1.VisualGridRunner({ testConcurrency: concurrency }) : new api_1.ClassicRunner(), config);
62
61
  }
62
+ async _eyesOpen() {
63
+ if (!this._eyes.isOpen) {
64
+ this._testResults = null;
65
+ await this._eyes.open(browser);
66
+ }
67
+ }
68
+ async _eyesClose() {
69
+ if (this._eyes.isOpen) {
70
+ this._testResults = await this._eyes.close(false);
71
+ }
72
+ }
63
73
  beforeSession(config) {
64
74
  this._appName = this._eyes.configuration.appName;
65
75
  if (config.enableEyesLogs) {
@@ -108,7 +118,7 @@ class EyesService {
108
118
  const configuration = this._eyes.getConfiguration();
109
119
  configuration.setTestName((_a = test.title) !== null && _a !== void 0 ? _a : test.description);
110
120
  if (!this._appName) {
111
- configuration.setAppName((_b = test.parent) !== null && _b !== void 0 ? _b : (((_c = test.fullName) === null || _c === void 0 ? void 0 : _c.replace(` ${test.description}`, '')) || test.id));
121
+ configuration.setAppName((_b = test.parent) !== null && _b !== void 0 ? _b : (_c = test.fullName) === null || _c === void 0 ? void 0 : _c.replace(` ${test.description}`, ''));
112
122
  }
113
123
  if (!configuration.getViewportSize()) {
114
124
  configuration.setViewportSize({ width: 800, height: 600 });
@@ -123,16 +133,5 @@ class EyesService {
123
133
  await this._eyes.runner.getAllTestResults(false);
124
134
  await this._eyes.abort();
125
135
  }
126
- async _eyesOpen() {
127
- if (!this._eyes.isOpen) {
128
- this._testResults = null;
129
- await this._eyes.open(browser);
130
- }
131
- }
132
- async _eyesClose() {
133
- if (this._eyes.isOpen) {
134
- this._testResults = await this._eyes.close(false);
135
- }
136
- }
137
136
  }
138
137
  module.exports = EyesService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-webdriverio",
3
- "version": "5.34.3",
3
+ "version": "5.34.7",
4
4
  "description": "Applitools Eyes SDK for WebdriverIO",
5
5
  "keywords": [
6
6
  "eyes-webdriverio",
@@ -52,7 +52,9 @@
52
52
  },
53
53
  "./v5/sync": {
54
54
  "types": "./types/v5-sync.d.ts"
55
- }
55
+ },
56
+ "./dist/*": "./dist/*.js",
57
+ "./package.json": "./package.json"
56
58
  },
57
59
  "typesVersions": {
58
60
  "*": {
@@ -83,7 +85,7 @@
83
85
  "scripts": {
84
86
  "lint": "eslint '**/*.ts'",
85
87
  "build": "ttsc --project tsconfig$([ ! -z $APPLITOOLS_WEBDRIVERIO_MAJOR_VERSION ] && echo .v$APPLITOOLS_WEBDRIVERIO_MAJOR_VERSION).json",
86
- "generate:tests": "coverage-tests generate https://raw.githubusercontent.com/applitools/sdk.coverage.tests/master/js/config.js --name 'eyes.webdriverio.javascript5'",
88
+ "generate:tests": "coverage-tests generate https://raw.githubusercontent.com/applitools/sdk.coverage.tests/universal-sdk/js/config.js --name 'eyes.webdriverio.javascript5'",
87
89
  "test": "yarn test:service && yarn test:coverage",
88
90
  "test:service": "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",
89
91
  "test:coverage": "yarn generate:tests && APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-webdriverio-5' APPLITOOLS_BATCH_ID=$(uuidgen) XUNIT_FILE=coverage-test-report.xml mocha --config .mocharc.cvg.js",
@@ -93,8 +95,10 @@
93
95
  "setup": "yarn docker:setup",
94
96
  "docker:setup": "node ../scripts/scripts/generate-docker-compose-config.js && docker-compose up -d",
95
97
  "docker:teardown": "docker-compose down",
98
+ "upgrade:framework": "if [ ! -z $APPLITOOLS_WEBDRIVERIO_MAJOR_VERSION ]; then packagejson=`cat package.json`; yarn upgrade --no-lockfile webdriverio@$APPLITOOLS_WEBDRIVERIO_MAJOR_VERSION; echo \"$packagejson\" > package.json; fi",
96
99
  "deps": "bongo deps",
97
- "gh:test": "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 sdk-shared eyes-sdk-core visual-grid-client eyes-api spec-driver-webdriverio utils driver snippets screenshoter' -f linking-depth=3",
100
+ "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)'",
101
+ "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 sdk-shared eyes-sdk-core visual-grid-client eyes-api spec-driver-webdriverio utils driver snippets screenshoter' -f linking-depth=3",
98
102
  "gh:publish": "gh workflow run publish.yml --ref $(git rev-parse --abbrev-ref HEAD) -f packages='wdio'",
99
103
  "preversion": "bongo preversion && yarn build",
100
104
  "version": "bongo version",
@@ -107,17 +111,17 @@
107
111
  },
108
112
  "dependencies": {
109
113
  "@applitools/eyes-api": "1.1.6",
110
- "@applitools/eyes-sdk-core": "12.24.5",
111
- "@applitools/spec-driver-webdriverio": "1.2.2",
112
- "@applitools/visual-grid-client": "15.8.49"
114
+ "@applitools/eyes-sdk-core": "12.24.9",
115
+ "@applitools/spec-driver-webdriverio": "1.2.6",
116
+ "@applitools/visual-grid-client": "15.8.55"
113
117
  },
114
118
  "devDependencies": {
115
119
  "@applitools/api-extractor": "1.2.3",
116
- "@applitools/scripts": "1.0.1",
117
- "@applitools/sdk-coverage-tests": "^2.3.16",
118
- "@applitools/sdk-release-kit": "^0.13.4",
119
- "@applitools/sdk-shared": "0.9.9",
120
- "@applitools/test-utils": "1.0.9",
120
+ "@applitools/scripts": "1.1.0",
121
+ "@applitools/sdk-coverage-tests": "^2.3.17",
122
+ "@applitools/sdk-release-kit": "^0.13.10",
123
+ "@applitools/sdk-shared": "0.9.11",
124
+ "@applitools/test-utils": "1.0.10",
121
125
  "@types/mocha": "^9.0.0",
122
126
  "@typescript-eslint/eslint-plugin": "^4.15.1",
123
127
  "@typescript-eslint/parser": "^4.15.1",
@@ -133,13 +137,13 @@
133
137
  "eslint-plugin-prettier": "^3.3.1",
134
138
  "geckodriver": "^1.20.0",
135
139
  "husky": "^4.3.8",
136
- "mocha": "^8.0.1",
140
+ "mocha": "^9.1.3",
137
141
  "prettier": "^2.1.2",
138
142
  "spec-xunit-file": "0.0.1-3",
139
143
  "ts-node": "^10.2.1",
140
144
  "ttypescript": "^1.5.12",
141
145
  "typescript": "^4.5.1-rc",
142
- "webdriverio": "^7.5.2"
146
+ "webdriverio": "^7.16.12"
143
147
  },
144
148
  "peerDependencies": {
145
149
  "webdriverio": "5.0.0 - 7.x.x"