sealights-protractor-plugin 3.0.1 → 3.0.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Sealights Protractor Plugin
2
2
 
3
- This is the **sealights** plugin for [Protractor](https://www.protractortest.org).
3
+ This is the **sealights** plugin for [Protractor](https://www.protractortest.org).
4
4
 
5
5
  > ⚠️ **Important notice about Protractor's deprecation**
6
6
  > The Protractor test framework has been officially **deprecated** by the Angular team and reached end-of-life in **Summer 2023**. To learn more, read the formal announcement on the [Angular blog](https://goo.gle/state-of-e2e-in-angular).
@@ -23,7 +23,9 @@ plugins: [{
23
23
  ...
24
24
  ]
25
25
  ```
26
+
26
27
  ### Passing parameters to reporter via CLI
28
+
27
29
  From the command line add sealights parameters with '--sl-' prefix
28
30
 
29
31
  ```
@@ -31,13 +33,15 @@ protractor protractor.conf.js --sl-tokenfile <path/to/token-file> --sl-buildses
31
33
  ```
32
34
 
33
35
  ### Supported parameters
34
- * token - Sealights token
35
- * tokenFile - Path to file contains the Sealights token
36
- * buildSessionId - Sealights build session id
37
- * buildSessionIdFile - Path to file contains the Sealights build session id
38
- * testStage - Test stage current tests are relates to
39
- * labId - Pre-defined Sealights lab-id (optional)
40
- * proxy - Proxy server (optional)
36
+
37
+ - token - Sealights token
38
+ - tokenFile - Path to file contains the Sealights token
39
+ - buildSessionId - Sealights build session id
40
+ - buildSessionIdFile - Path to file contains the Sealights build session id
41
+ - testStage - Test stage current tests are relates to
42
+ - labId - Pre-defined Sealights lab-id (optional)
43
+ - proxy - Proxy server (optional)
41
44
 
42
45
  ## Author
46
+
43
47
  Sealights
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sealights-protractor-plugin",
3
- "version": "3.0.1",
3
+ "version": "3.0.4",
4
4
  "description": "Sealights Protractor integration plugin",
5
5
  "author": "Kristijan Stefanoski <k.stefanoski@ext.tricentis.com>",
6
6
  "homepage": "https://github.com/Sealights/SL.OnPremis.Plugins.JavaScript#readme",
@@ -27,7 +27,7 @@
27
27
  "url": "https://github.com/Sealights/SL.OnPremis.Plugins.JavaScript/issues"
28
28
  },
29
29
  "dependencies": {
30
- "sealights-plugins-common": "^2.0.117",
30
+ "sealights-plugins-common": "^2.0.119",
31
31
  "typescript": "^4.4.4"
32
32
  },
33
33
  "peerDependencies": {
@@ -36,5 +36,5 @@
36
36
  "devDependencies": {
37
37
  "mocha": "^9.1.3"
38
38
  },
39
- "gitHead": "72fdbad7f88ced546c4c95b33fa50f8d0de5ce4b"
39
+ "gitHead": "e60c5087a7ab39e26e527e99d119806b2002bfc7"
40
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../lib/contracts.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,kCAAc,CAAA;IACd,8BAAW,CAAA;IACX,gCAAa,CAAA;AACjB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B"}
1
+ {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../lib/contracts.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,8BAAW,CAAA;IACX,gCAAa,CAAA;AACf,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B"}
@@ -20,10 +20,12 @@ const sendFootprintsScript = 'if(window && window.$SealightsAgent && window.$Se
20
20
  ' arguments[arguments.length - 1]()' +
21
21
  '}';
22
22
  const originalSeleniumMethods = new Map();
23
- const tags = [{
23
+ const tags = [
24
+ {
24
25
  name: 'protractor-plugin',
25
26
  version: version_1.version,
26
- }];
27
+ },
28
+ ];
27
29
  function runScriptSafe() {
28
30
  return __awaiter(this, void 0, void 0, function* () {
29
31
  try {
@@ -40,7 +42,7 @@ module.exports = {
40
42
  sealightsIntegration: sealights_plugins_common_1.SealightsIntegration,
41
43
  setup: function () {
42
44
  return __awaiter(this, void 0, void 0, function* () {
43
- Object.values(contracts_1.SeleniumMethods).forEach(method => {
45
+ Object.values(contracts_1.SeleniumMethods).forEach((method) => {
44
46
  originalSeleniumMethods[method] = protractor_1.browser[method];
45
47
  protractor_1.browser[method] = function () {
46
48
  return __awaiter(this, arguments, void 0, function* () {
@@ -64,6 +66,6 @@ module.exports = {
64
66
  yield instance.endExecution();
65
67
  yield instance.stopAgent();
66
68
  });
67
- }
69
+ },
68
70
  };
69
71
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2CAAwD;AACxD,2CAA4C;AAC5C,uEAAqG;AACrG,uCAAkC;AAElC,MAAM,oBAAoB,GAAG,oFAAoF;IAC7G,6CAA6C;IAC7C,uCAAuC;IACvC,UAAU;IACV,oCAAoC;IACpC,GAAG,CAAC;AACR,MAAM,uBAAuB,GAAmC,IAAI,GAAG,EAAE,CAAC;AAC1E,MAAM,IAAI,GAAe,CAAC;QACtB,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAP,iBAAO;KACV,CAAC,CAAC;AAEH,SAAe,aAAa;;QACxB,IAAI;YACA,iCAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAA;YACpD,MAAM,oBAAiB,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;SACpE;QAAC,OAAO,CAAC,EAAE;YACR,iCAAM,CAAC,SAAS,CAAC,kDAAkD,CAAC,CAAC,OAAO,GAAG,CAAC,CAAA;SACnF;IACL,CAAC;CAAA;AAED,MAAM,CAAC,OAAO,GAAG;IACZ,IAAI,EAAE,6BAA6B;IACnC,oBAAoB,EAAE,+CAAoB;IAE3C,KAAK,EAAE;;YACH,MAAM,CAAC,MAAM,CAAC,2BAAe,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;gBAC5C,uBAAuB,CAA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AAM,EACN,SAAS,EACT,IAAI,CACL,CAAC;YACF,MAAM,QAAQ,CAAC,YAAY,EAAE,CAAC;YAC9B,MAAM,QAAQ,CAAC,SAAS,EAAE,CAAC;QAC7B,CAAC;KAAA;CACF,CAAC"}
@@ -1 +1 @@
1
- export declare const version = "3.0.1";
1
+ export declare const version = "3.0.4";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = "3.0.1";
4
+ exports.version = "3.0.4";
5
5
  //# sourceMappingURL=version.js.map