@applitools/eyes-webdriverio 5.34.4 → 5.34.8

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.8 - 2022/1/11
7
+
8
+ - updated to @applitools/eyes-sdk-core@12.24.12 (from 12.24.9)
9
+ - updated to @applitools/visual-grid-client@15.8.59 (from 15.8.55)
10
+
11
+ ## 5.34.7 - 2022/1/5
12
+
13
+ - updated to @applitools/spec-driver-webdriverio@1.2.6 (from 1.2.5)
14
+
15
+ ## 5.34.6 - 2021/12/23
16
+
17
+ - updated to @applitools/eyes-sdk-core@12.24.9 (from 12.24.7)
18
+ - updated to @applitools/visual-grid-client@15.8.55 (from 15.8.53)
19
+
20
+ ## 5.34.5 - 2021/12/20
21
+
22
+ - updated to @applitools/eyes-sdk-core@12.24.7 (from 12.24.6)
23
+ - updated to @applitools/spec-driver-webdriverio@1.2.3 (from 1.2.2)
24
+ - updated to @applitools/visual-grid-client@15.8.53 (from 15.8.52)
25
+ - updated to @applitools/spec-driver-webdriverio@1.2.5 (from 1.2.3)
26
+
6
27
  ## 5.34.4 - 2021/12/17
7
28
 
8
29
  - updated to @applitools/eyes-sdk-core@12.24.6 (from 12.24.5)
package/dist/service.js CHANGED
@@ -59,6 +59,17 @@ class EyesService {
59
59
  config.hideScrollbars = true;
60
60
  this._eyes = new EyesOverride(useVisualGrid ? new api_1.VisualGridRunner({ testConcurrency: concurrency }) : new api_1.ClassicRunner(), config);
61
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
+ }
62
73
  beforeSession(config) {
63
74
  this._appName = this._eyes.configuration.appName;
64
75
  if (config.enableEyesLogs) {
@@ -107,7 +118,7 @@ class EyesService {
107
118
  const configuration = this._eyes.getConfiguration();
108
119
  configuration.setTestName((_a = test.title) !== null && _a !== void 0 ? _a : test.description);
109
120
  if (!this._appName) {
110
- 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}`, ''));
111
122
  }
112
123
  if (!configuration.getViewportSize()) {
113
124
  configuration.setViewportSize({ width: 800, height: 600 });
@@ -122,16 +133,5 @@ class EyesService {
122
133
  await this._eyes.runner.getAllTestResults(false);
123
134
  await this._eyes.abort();
124
135
  }
125
- async _eyesOpen() {
126
- if (!this._eyes.isOpen) {
127
- this._testResults = null;
128
- await this._eyes.open(browser);
129
- }
130
- }
131
- async _eyesClose() {
132
- if (this._eyes.isOpen) {
133
- this._testResults = await this._eyes.close(false);
134
- }
135
- }
136
136
  }
137
137
  module.exports = EyesService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-webdriverio",
3
- "version": "5.34.4",
3
+ "version": "5.34.8",
4
4
  "description": "Applitools Eyes SDK for WebdriverIO",
5
5
  "keywords": [
6
6
  "eyes-webdriverio",
@@ -85,7 +85,7 @@
85
85
  "scripts": {
86
86
  "lint": "eslint '**/*.ts'",
87
87
  "build": "ttsc --project tsconfig$([ ! -z $APPLITOOLS_WEBDRIVERIO_MAJOR_VERSION ] && echo .v$APPLITOOLS_WEBDRIVERIO_MAJOR_VERSION).json",
88
- "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'",
89
89
  "test": "yarn test:service && yarn test:coverage",
90
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",
91
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",
@@ -95,8 +95,10 @@
95
95
  "setup": "yarn docker:setup",
96
96
  "docker:setup": "node ../scripts/scripts/generate-docker-compose-config.js && docker-compose up -d",
97
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",
98
99
  "deps": "bongo deps",
99
- "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",
100
102
  "gh:publish": "gh workflow run publish.yml --ref $(git rev-parse --abbrev-ref HEAD) -f packages='wdio'",
101
103
  "preversion": "bongo preversion && yarn build",
102
104
  "version": "bongo version",
@@ -109,15 +111,15 @@
109
111
  },
110
112
  "dependencies": {
111
113
  "@applitools/eyes-api": "1.1.6",
112
- "@applitools/eyes-sdk-core": "12.24.6",
113
- "@applitools/spec-driver-webdriverio": "1.2.2",
114
- "@applitools/visual-grid-client": "15.8.52"
114
+ "@applitools/eyes-sdk-core": "12.24.12",
115
+ "@applitools/spec-driver-webdriverio": "1.2.6",
116
+ "@applitools/visual-grid-client": "15.8.59"
115
117
  },
116
118
  "devDependencies": {
117
- "@applitools/api-extractor": "1.2.3",
118
- "@applitools/scripts": "1.0.1",
119
- "@applitools/sdk-coverage-tests": "^2.3.16",
120
- "@applitools/sdk-release-kit": "^0.13.4",
119
+ "@applitools/api-extractor": "1.2.6",
120
+ "@applitools/scripts": "1.1.0",
121
+ "@applitools/sdk-coverage-tests": "^2.3.18",
122
+ "@applitools/sdk-release-kit": "^0.13.10",
121
123
  "@applitools/sdk-shared": "0.9.11",
122
124
  "@applitools/test-utils": "1.0.10",
123
125
  "@types/mocha": "^9.0.0",
@@ -135,7 +137,7 @@
135
137
  "eslint-plugin-prettier": "^3.3.1",
136
138
  "geckodriver": "^1.20.0",
137
139
  "husky": "^4.3.8",
138
- "mocha": "^8.0.1",
140
+ "mocha": "^9.1.3",
139
141
  "prettier": "^2.1.2",
140
142
  "spec-xunit-file": "0.0.1-3",
141
143
  "ts-node": "^10.2.1",