@jahia/cypress 3.29.0 → 3.30.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.
@@ -12,7 +12,7 @@ export declare const healthCheck: (severity?: string, probeHealthFilter?: string
12
12
  * @param probeHealthFilter the filter for the health check probes, default is GREEN
13
13
  * @param timeout the timeout in milliseconds, default is 60000
14
14
  * @param interval the interval in milliseconds, default is 500
15
- * @param statusMatchCount the number of consecutive status matches before the waitUntil resolves, default is 1
15
+ * @param statusMatchCount the number of consecutive status matches before the waitUntil resolves, default is 3
16
16
  */
17
17
  export declare const waitUntilSAMStatus: ({ expectedHealth, severity, probeHealthFilter, timeout, interval, statusMatchCount }: {
18
18
  expectedHealth: any;
@@ -31,10 +31,10 @@ exports.healthCheck = healthCheck;
31
31
  * @param probeHealthFilter the filter for the health check probes, default is GREEN
32
32
  * @param timeout the timeout in milliseconds, default is 60000
33
33
  * @param interval the interval in milliseconds, default is 500
34
- * @param statusMatchCount the number of consecutive status matches before the waitUntil resolves, default is 1
34
+ * @param statusMatchCount the number of consecutive status matches before the waitUntil resolves, default is 3
35
35
  */
36
36
  var waitUntilSAMStatus = function (_a) {
37
- var expectedHealth = _a.expectedHealth, _b = _a.severity, severity = _b === void 0 ? 'MEDIUM' : _b, _c = _a.probeHealthFilter, probeHealthFilter = _c === void 0 ? 'GREEN' : _c, _d = _a.timeout, timeout = _d === void 0 ? 60000 : _d, _e = _a.interval, interval = _e === void 0 ? 500 : _e, _f = _a.statusMatchCount, statusMatchCount = _f === void 0 ? 1 : _f;
37
+ var expectedHealth = _a.expectedHealth, _b = _a.severity, severity = _b === void 0 ? 'MEDIUM' : _b, _c = _a.probeHealthFilter, probeHealthFilter = _c === void 0 ? 'GREEN' : _c, _d = _a.timeout, timeout = _d === void 0 ? 60000 : _d, _e = _a.interval, interval = _e === void 0 ? 500 : _e, _f = _a.statusMatchCount, statusMatchCount = _f === void 0 ? 3 : _f;
38
38
  var statusCount = 0;
39
39
  var lastGraphqlResponse = {};
40
40
  cy.waitUntil(function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jahia/cypress",
3
- "version": "3.29.0",
3
+ "version": "3.30.0",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "lint": "eslint src -c .eslintrc.json --ext .ts"
@@ -28,9 +28,9 @@ export const healthCheck = (severity = 'MEDIUM', probeHealthFilter = 'GREEN'): C
28
28
  * @param probeHealthFilter the filter for the health check probes, default is GREEN
29
29
  * @param timeout the timeout in milliseconds, default is 60000
30
30
  * @param interval the interval in milliseconds, default is 500
31
- * @param statusMatchCount the number of consecutive status matches before the waitUntil resolves, default is 1
31
+ * @param statusMatchCount the number of consecutive status matches before the waitUntil resolves, default is 3
32
32
  */
33
- export const waitUntilSAMStatus = ({expectedHealth, severity = 'MEDIUM', probeHealthFilter = 'GREEN', timeout = 60000, interval = 500, statusMatchCount = 1}) : void => {
33
+ export const waitUntilSAMStatus = ({expectedHealth, severity = 'MEDIUM', probeHealthFilter = 'GREEN', timeout = 60000, interval = 500, statusMatchCount = 3}) : void => {
34
34
  let statusCount = 0;
35
35
  let lastGraphqlResponse = {};
36
36
  cy.waitUntil(() =>