@baloise/ds-testing 17.4.0-snapshot.1609-d2bcc38d3 → 17.4.1

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.
Files changed (105) hide show
  1. package/add-custom-commands.esm.js +1 -1
  2. package/add-override-commands.esm.js +3 -541
  3. package/bal-input-stepper.command.esm.js +165 -165
  4. package/helpers.esm.js +42 -43
  5. package/index.esm.js +800 -2
  6. package/index.esm2.js +317 -0
  7. package/package.json +4 -3
  8. package/selectors.esm.js +1 -1
  9. package/src/add-custom-commands.d.ts +34 -34
  10. package/src/add-override-commands.d.ts +9 -9
  11. package/src/commands/custom/bal-accordion.command.d.ts +1 -1
  12. package/src/commands/custom/bal-accordion.types.d.ts +15 -15
  13. package/src/commands/custom/bal-field.command.d.ts +1 -1
  14. package/src/commands/custom/bal-field.types.d.ts +11 -11
  15. package/src/commands/custom/bal-hint.command.d.ts +1 -1
  16. package/src/commands/custom/bal-hint.types.d.ts +15 -15
  17. package/src/commands/custom/bal-input-stepper.command.d.ts +1 -1
  18. package/src/commands/custom/bal-input-stepper.types.d.ts +15 -15
  19. package/src/commands/custom/bal-modal.command.d.ts +1 -1
  20. package/src/commands/custom/bal-modal.types.d.ts +24 -24
  21. package/src/commands/custom/bal-pagination.command.d.ts +1 -1
  22. package/src/commands/custom/bal-pagination.types.d.ts +23 -23
  23. package/src/commands/custom/bal-popover.command.d.ts +1 -1
  24. package/src/commands/custom/bal-popover.types.d.ts +27 -27
  25. package/src/commands/custom/bal-popup.command.d.ts +1 -1
  26. package/src/commands/custom/bal-popup.types.d.ts +15 -15
  27. package/src/commands/custom/bal-select.command.d.ts +1 -1
  28. package/src/commands/custom/bal-select.types.d.ts +19 -19
  29. package/src/commands/custom/bal-snackbar.command.d.ts +1 -1
  30. package/src/commands/custom/bal-snackbar.types.d.ts +11 -11
  31. package/src/commands/custom/bal-steps.command.d.ts +1 -1
  32. package/src/commands/custom/bal-steps.types.d.ts +27 -27
  33. package/src/commands/custom/bal-tabs.command.d.ts +1 -1
  34. package/src/commands/custom/bal-tabs.types.d.ts +31 -31
  35. package/src/commands/custom/bal-toast.command.d.ts +1 -1
  36. package/src/commands/custom/bal-toast.types.d.ts +11 -11
  37. package/src/commands/custom/component.command.d.ts +1 -1
  38. package/src/commands/custom/component.types.d.ts +47 -47
  39. package/src/commands/custom/get.command.d.ts +1 -1
  40. package/src/commands/custom/get.types.d.ts +43 -43
  41. package/src/commands/custom/platform.command.d.ts +1 -1
  42. package/src/commands/custom/platform.types.d.ts +11 -11
  43. package/src/commands/custom/visit.command.d.ts +1 -1
  44. package/src/commands/custom/visit.types.d.ts +10 -10
  45. package/src/commands/helpers.d.ts +48 -48
  46. package/src/commands/overrides/blur.command.d.ts +1 -1
  47. package/src/commands/overrides/check.command.d.ts +1 -1
  48. package/src/commands/overrides/clear.command.d.ts +1 -1
  49. package/src/commands/overrides/click.command.d.ts +1 -1
  50. package/src/commands/overrides/focus.command.d.ts +1 -1
  51. package/src/commands/overrides/select.command.d.ts +1 -1
  52. package/src/commands/overrides/should.command.d.ts +1 -1
  53. package/src/commands/overrides/type.command.d.ts +1 -1
  54. package/src/commands/overrides/uncheck.command.d.ts +1 -1
  55. package/src/index.d.ts +25 -21
  56. package/src/legacy/accessors/accordion.accessor.d.ts +29 -0
  57. package/src/legacy/accessors/button.accessor.d.ts +23 -0
  58. package/src/legacy/accessors/checkbox.accessor.d.ts +25 -0
  59. package/src/legacy/accessors/drop-down.accessor.d.ts +31 -0
  60. package/src/legacy/accessors/error.accessor.d.ts +25 -0
  61. package/src/legacy/accessors/icon-accessor.d.ts +23 -0
  62. package/src/legacy/accessors/input.accessor.d.ts +30 -0
  63. package/src/legacy/accessors/link.accessor.d.ts +39 -0
  64. package/src/legacy/accessors/list.accessor.d.ts +23 -0
  65. package/src/legacy/accessors/mixins/andable.d.ts +5 -0
  66. package/src/legacy/accessors/mixins/attachable.d.ts +6 -0
  67. package/src/legacy/accessors/mixins/attributable.d.ts +7 -0
  68. package/src/legacy/accessors/mixins/blurable.d.ts +6 -0
  69. package/src/legacy/accessors/mixins/checkable.d.ts +7 -0
  70. package/src/legacy/accessors/mixins/clearable.d.ts +6 -0
  71. package/src/legacy/accessors/mixins/clickable.d.ts +7 -0
  72. package/src/legacy/accessors/mixins/containable.d.ts +5 -0
  73. package/src/legacy/accessors/mixins/disableable.d.ts +5 -0
  74. package/src/legacy/accessors/mixins/eachable.d.ts +5 -0
  75. package/src/legacy/accessors/mixins/existable.d.ts +5 -0
  76. package/src/legacy/accessors/mixins/findable.d.ts +5 -0
  77. package/src/legacy/accessors/mixins/invokable.d.ts +5 -0
  78. package/src/legacy/accessors/mixins/lengthable.d.ts +5 -0
  79. package/src/legacy/accessors/mixins/mixins.d.ts +12 -0
  80. package/src/legacy/accessors/mixins/nthSelectable.d.ts +7 -0
  81. package/src/legacy/accessors/mixins/selectable.d.ts +4 -0
  82. package/src/legacy/accessors/mixins/shouldable.d.ts +5 -0
  83. package/src/legacy/accessors/mixins/thenable.d.ts +5 -0
  84. package/src/legacy/accessors/mixins/typeable.d.ts +6 -0
  85. package/src/legacy/accessors/mixins/urlable.d.ts +6 -0
  86. package/src/legacy/accessors/mixins/visible.d.ts +5 -0
  87. package/src/legacy/accessors/mixins/waitable.d.ts +5 -0
  88. package/src/legacy/accessors/multi-select-button.accessor.d.ts +24 -0
  89. package/src/legacy/accessors/navigation.accessor.d.ts +22 -0
  90. package/src/legacy/accessors/radio.accessor.d.ts +23 -0
  91. package/src/legacy/accessors/select-button.accessor.d.ts +24 -0
  92. package/src/legacy/accessors/table.accessor.d.ts +27 -0
  93. package/src/legacy/accessors/tabs.accessor.d.ts +26 -0
  94. package/src/legacy/accessors/text.accessor.d.ts +23 -0
  95. package/src/legacy/accessors/tile.accessor.d.ts +27 -0
  96. package/src/legacy/accessors/toast.accessor.d.ts +24 -0
  97. package/src/legacy/accessors/tooltip.accessor.d.ts +23 -0
  98. package/src/legacy/accessors/typeahead.accessor.d.ts +26 -0
  99. package/src/legacy/index.d.ts +43 -0
  100. package/src/selectors/index.d.ts +354 -354
  101. package/src/selectors/selectors.util.d.ts +4 -4
  102. package/src/selectors.d.ts +1 -1
  103. package/src/viewports.d.ts +7 -7
  104. package/type.command.esm.js +541 -0
  105. package/selectors.esm2.js +0 -179
package/helpers.esm.js CHANGED
@@ -36,11 +36,6 @@ function _extends() {
36
36
  return _extends.apply(this, arguments);
37
37
  }
38
38
 
39
- function _type_of(obj) {
40
- "@swc/helpers - typeof";
41
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
42
- }
43
-
44
39
  function __generator(thisArg, body) {
45
40
  var _ = {
46
41
  label: 0,
@@ -50,8 +45,12 @@ function __generator(thisArg, body) {
50
45
  },
51
46
  trys: [],
52
47
  ops: []
53
- }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
54
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
48
+ }, f, y, t, g;
49
+ return g = {
50
+ next: verb(0),
51
+ "throw": verb(1),
52
+ "return": verb(2)
53
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
55
54
  return this;
56
55
  }), g;
57
56
  function verb(n) {
@@ -127,7 +126,7 @@ function __generator(thisArg, body) {
127
126
  }
128
127
  if (op[0] & 5) throw op[1];
129
128
  return {
130
- value: op[0] ? op[1] : undefined,
129
+ value: op[0] ? op[1] : void 0,
131
130
  done: true
132
131
  };
133
132
  }
@@ -142,7 +141,7 @@ var deepReady = /*#__PURE__*/ _async_to_generator(function(el, full) {
142
141
  return __generator(this, function(_state) {
143
142
  switch(_state.label){
144
143
  case 0:
145
- if (full === undefined) full = false;
144
+ if (full === void 0) full = false;
146
145
  element = el;
147
146
  if (!element) return [
148
147
  3,
@@ -182,8 +181,8 @@ var deepReady = /*#__PURE__*/ _async_to_generator(function(el, full) {
182
181
  });
183
182
  });
184
183
  var rIC = function(callback, timeout) {
185
- if (timeout === undefined) timeout = 5000;
186
- if (typeof window !== 'undefined' && 'requestIdleCallback' in window) {
184
+ if (timeout === void 0) timeout = 5000;
185
+ if (typeof window !== "undefined" && "requestIdleCallback" in window) {
187
186
  window.requestIdleCallback(callback, {
188
187
  timeout: timeout
189
188
  });
@@ -206,16 +205,16 @@ var waitAfterIdleCallback = function(timeout) {
206
205
  });
207
206
  };
208
207
  var raf = function(h) {
209
- if (typeof __zone_symbol__requestAnimationFrame === 'function') {
208
+ if (typeof __zone_symbol__requestAnimationFrame === "function") {
210
209
  return __zone_symbol__requestAnimationFrame(h);
211
210
  }
212
- if (typeof requestAnimationFrame === 'function') {
211
+ if (typeof requestAnimationFrame === "function") {
213
212
  return requestAnimationFrame(h);
214
213
  }
215
214
  return setTimeout(h);
216
215
  };
217
216
  var runHighPrioritizedTask = function(callback) {
218
- if (typeof window !== 'undefined' && 'MessageChannel' in window) {
217
+ if (typeof window !== "undefined" && "MessageChannel" in window) {
219
218
  var messageChannel = new window.MessageChannel();
220
219
  messageChannel.port1.onmessage = callback;
221
220
  messageChannel.port2.postMessage(undefined);
@@ -224,68 +223,68 @@ var runHighPrioritizedTask = function(callback) {
224
223
  }
225
224
  };
226
225
  var isElement = function(el, name) {
227
- return (typeof el === "undefined" ? "undefined" : _type_of(el)) === 'object' && el.length > 0 && el[0].nodeName === name;
226
+ return typeof el === "object" && el.length > 0 && el[0].nodeName === name;
228
227
  };
229
228
  var hasClass = function(el, name) {
230
- return (typeof el === "undefined" ? "undefined" : _type_of(el)) === 'object' && el.length > 0 && el.hasClass(name);
229
+ return typeof el === "object" && el.length > 0 && el.hasClass(name);
231
230
  };
232
231
  var hasTestId = function(el, testId) {
233
- if ((typeof el === "undefined" ? "undefined" : _type_of(el)) === 'object' && el.length > 0) {
234
- var dataTestId = el.data('testid');
232
+ if (typeof el === "object" && el.length > 0) {
233
+ var dataTestId = el.data("testid");
235
234
  return dataTestId === testId;
236
235
  }
237
236
  return false;
238
237
  };
239
238
  var isLabel = function(el) {
240
- return isElement(el, 'LABEL');
239
+ return isElement(el, "LABEL");
241
240
  };
242
241
  var isAccordion = function(el) {
243
- return isElement(el, 'BAL-ACCORDION');
242
+ return isElement(el, "BAL-ACCORDION");
244
243
  };
245
244
  var isButton = function(el) {
246
- return isElement(el, 'BAL-BUTTON');
245
+ return isElement(el, "BAL-BUTTON");
247
246
  };
248
247
  var isCheckbox = function(el) {
249
- return isElement(el, 'BAL-CHECKBOX');
248
+ return isElement(el, "BAL-CHECKBOX");
250
249
  };
251
250
  var isNumberInput = function(el) {
252
- return isElement(el, 'BAL-NUMBER-INPUT');
251
+ return isElement(el, "BAL-NUMBER-INPUT");
253
252
  };
254
253
  var isRadio = function(el) {
255
- return isElement(el, 'BAL-RADIO');
254
+ return isElement(el, "BAL-RADIO");
256
255
  };
257
256
  var isSelect = function(el) {
258
- return isElement(el, 'BAL-SELECT');
257
+ return isElement(el, "BAL-SELECT");
259
258
  };
260
259
  var isTag = function(el) {
261
- return isElement(el, 'BAL-TAG');
260
+ return isElement(el, "BAL-TAG");
262
261
  };
263
262
  var isTabs = function(el) {
264
- return isElement(el, 'BAL-TABS');
263
+ return isElement(el, "BAL-TABS");
265
264
  };
266
265
  var isSteps = function(el) {
267
- return isElement(el, 'BAL-STEPS');
266
+ return isElement(el, "BAL-STEPS");
268
267
  };
269
268
  var isDropDown = function(el) {
270
- return isElement(el, 'BAL-DROPDOWN');
269
+ return isElement(el, "BAL-DROPDOWN");
271
270
  };
272
271
  var isSlider = function(el) {
273
- return isElement(el, 'BAL-INPUT-SLIDER');
272
+ return isElement(el, "BAL-INPUT-SLIDER");
274
273
  };
275
274
  var isHint = function(el) {
276
- return isElement(el, 'BAL-HINT');
275
+ return isElement(el, "BAL-HINT");
277
276
  };
278
277
  var isTextarea = function(el) {
279
- return isElement(el, 'BAL-TEXTAREA');
278
+ return isElement(el, "BAL-TEXTAREA");
280
279
  };
281
280
  var isInputStepper = function(el) {
282
- return isElement(el, 'BAL-INPUT-STEPPER');
281
+ return isElement(el, "BAL-INPUT-STEPPER");
283
282
  };
284
283
  var isInput = function(el) {
285
- return isElement(el, 'BAL-INPUT');
284
+ return isElement(el, "BAL-INPUT");
286
285
  };
287
286
  var isInputDate = function(el) {
288
- return isElement(el, 'BAL-INPUT-DATE');
287
+ return isElement(el, "BAL-INPUT-DATE");
289
288
  };
290
289
  /**
291
290
  * Executes a command on a child element and wraps back to the main element/component
@@ -304,7 +303,7 @@ var wrapCommand = function(displayName, element, message, fn) {
304
303
  log: false
305
304
  }).then(function($el) {
306
305
  Cypress.log({
307
- type: 'parent',
306
+ type: "parent",
308
307
  $el: $el,
309
308
  displayName: displayName,
310
309
  message: message
@@ -319,10 +318,10 @@ var shouldLog = function(options) {
319
318
  return options === undefined || options.log !== false;
320
319
  };
321
320
  var log = function(displayName, message, $el, options) {
322
- if (message === undefined) message = '';
321
+ if (message === void 0) message = "";
323
322
  if (shouldLog(options)) {
324
323
  Cypress.log({
325
- type: 'parent',
324
+ type: "parent",
326
325
  $el: $el,
327
326
  displayName: displayName,
328
327
  message: message
@@ -351,13 +350,13 @@ var testOnPlatforms = function(platforms, fn) {
351
350
  for(var index = 0; index < platforms.length; index++)_loop(index);
352
351
  };
353
352
  function checkAriaLabel(element, label) {
354
- if (label === undefined || label === null || label === '') {
353
+ if (label === undefined || label === null || label === "") {
355
354
  return true;
356
355
  }
357
356
  var text = Cypress.$(element).text().trim();
358
- var ariaLabel = Cypress.$(element).attr('aria-label');
359
- var title = Cypress.$(element).attr('title');
360
- var value = Cypress.$(element).attr('value');
357
+ var ariaLabel = Cypress.$(element).attr("aria-label");
358
+ var title = Cypress.$(element).attr("title");
359
+ var value = Cypress.$(element).attr("value");
361
360
  return [
362
361
  text,
363
362
  ariaLabel,
@@ -366,4 +365,4 @@ function checkAriaLabel(element, label) {
366
365
  ].includes(label.trim());
367
366
  }
368
367
 
369
- export { hasTestId as A, isSteps as B, waitAfterFramePaint as a, waitAfterIdleCallback as b, checkAriaLabel as c, areComponentsReady as d, deepReady as e, isAccordion as f, wrapCommand as g, isButton as h, isDropDown as i, isCheckbox as j, isInput as k, log as l, isInputDate as m, isNumberInput as n, isTextarea as o, isSlider as p, isRadio as q, isSelect as r, isTag as s, testOnPlatforms as t, isHint as u, hasClass as v, wrapOptions as w, isLabel as x, isInputStepper as y, isTabs as z };
368
+ export { hasTestId as A, isSteps as B, _extends as _, waitAfterFramePaint as a, waitAfterIdleCallback as b, checkAriaLabel as c, areComponentsReady as d, deepReady as e, isDropDown as f, isAccordion as g, isCheckbox as h, isButton as i, isInput as j, isInputDate as k, log as l, isNumberInput as m, isTextarea as n, isSlider as o, isRadio as p, isSelect as q, wrapCommand as r, isTag as s, testOnPlatforms as t, isHint as u, hasClass as v, wrapOptions as w, isLabel as x, isInputStepper as y, isTabs as z };