@baloise/ds-testing 17.4.1 → 18.0.0-nightly.20250212

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 +541 -3
  3. package/bal-input-stepper.command.esm.js +165 -165
  4. package/helpers.esm.js +43 -42
  5. package/index.esm.js +2 -800
  6. package/package.json +3 -4
  7. package/selectors.esm.js +1 -1
  8. package/selectors.esm2.js +179 -0
  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 +21 -25
  56. package/src/selectors/index.d.ts +354 -354
  57. package/src/selectors/selectors.util.d.ts +4 -4
  58. package/src/selectors.d.ts +1 -1
  59. package/src/viewports.d.ts +7 -7
  60. package/index.esm2.js +0 -317
  61. package/src/legacy/accessors/accordion.accessor.d.ts +0 -29
  62. package/src/legacy/accessors/button.accessor.d.ts +0 -23
  63. package/src/legacy/accessors/checkbox.accessor.d.ts +0 -25
  64. package/src/legacy/accessors/drop-down.accessor.d.ts +0 -31
  65. package/src/legacy/accessors/error.accessor.d.ts +0 -25
  66. package/src/legacy/accessors/icon-accessor.d.ts +0 -23
  67. package/src/legacy/accessors/input.accessor.d.ts +0 -30
  68. package/src/legacy/accessors/link.accessor.d.ts +0 -39
  69. package/src/legacy/accessors/list.accessor.d.ts +0 -23
  70. package/src/legacy/accessors/mixins/andable.d.ts +0 -5
  71. package/src/legacy/accessors/mixins/attachable.d.ts +0 -6
  72. package/src/legacy/accessors/mixins/attributable.d.ts +0 -7
  73. package/src/legacy/accessors/mixins/blurable.d.ts +0 -6
  74. package/src/legacy/accessors/mixins/checkable.d.ts +0 -7
  75. package/src/legacy/accessors/mixins/clearable.d.ts +0 -6
  76. package/src/legacy/accessors/mixins/clickable.d.ts +0 -7
  77. package/src/legacy/accessors/mixins/containable.d.ts +0 -5
  78. package/src/legacy/accessors/mixins/disableable.d.ts +0 -5
  79. package/src/legacy/accessors/mixins/eachable.d.ts +0 -5
  80. package/src/legacy/accessors/mixins/existable.d.ts +0 -5
  81. package/src/legacy/accessors/mixins/findable.d.ts +0 -5
  82. package/src/legacy/accessors/mixins/invokable.d.ts +0 -5
  83. package/src/legacy/accessors/mixins/lengthable.d.ts +0 -5
  84. package/src/legacy/accessors/mixins/mixins.d.ts +0 -12
  85. package/src/legacy/accessors/mixins/nthSelectable.d.ts +0 -7
  86. package/src/legacy/accessors/mixins/selectable.d.ts +0 -4
  87. package/src/legacy/accessors/mixins/shouldable.d.ts +0 -5
  88. package/src/legacy/accessors/mixins/thenable.d.ts +0 -5
  89. package/src/legacy/accessors/mixins/typeable.d.ts +0 -6
  90. package/src/legacy/accessors/mixins/urlable.d.ts +0 -6
  91. package/src/legacy/accessors/mixins/visible.d.ts +0 -5
  92. package/src/legacy/accessors/mixins/waitable.d.ts +0 -5
  93. package/src/legacy/accessors/multi-select-button.accessor.d.ts +0 -24
  94. package/src/legacy/accessors/navigation.accessor.d.ts +0 -22
  95. package/src/legacy/accessors/radio.accessor.d.ts +0 -23
  96. package/src/legacy/accessors/select-button.accessor.d.ts +0 -24
  97. package/src/legacy/accessors/table.accessor.d.ts +0 -27
  98. package/src/legacy/accessors/tabs.accessor.d.ts +0 -26
  99. package/src/legacy/accessors/text.accessor.d.ts +0 -23
  100. package/src/legacy/accessors/tile.accessor.d.ts +0 -27
  101. package/src/legacy/accessors/toast.accessor.d.ts +0 -24
  102. package/src/legacy/accessors/tooltip.accessor.d.ts +0 -23
  103. package/src/legacy/accessors/typeahead.accessor.d.ts +0 -26
  104. package/src/legacy/index.d.ts +0 -43
  105. package/type.command.esm.js +0 -541
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baloise/ds-testing",
3
- "version": "17.4.1",
3
+ "version": "18.0.0-nightly.20250212",
4
4
  "description": "The Baloise Design-System is an open source project for styling awesome web applications that follow the Baloise corporate styling guidelines.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,8 +12,7 @@
12
12
  "homepage": "https://design.baloise.dev",
13
13
  "license": "Apache-2.0",
14
14
  "dependencies": {
15
- "@baloise/ds-core": "17.4.1",
16
- "cypress-file-upload": "~5.0.8"
15
+ "@baloise/ds-core": "18.0.0-nightly.20250212"
17
16
  },
18
17
  "module": "./index.esm.js",
19
18
  "type": "module",
@@ -45,4 +44,4 @@
45
44
  ]
46
45
  }
47
46
  }
48
- }
47
+ }
package/selectors.esm.js CHANGED
@@ -1 +1 @@
1
- export { b as byTestId, d as dataTestSelector, s as selectors } from './index.esm2.js';
1
+ export { b as byTestId, d as dataTestSelector, s as selectors } from './selectors.esm2.js';
@@ -0,0 +1,179 @@
1
+ var dataTestSelectors = function(testId) {
2
+ return [
3
+ '[data-test-id="' + testId + '"]',
4
+ '[data-testid="' + testId + '"]',
5
+ '[data-test="' + testId + '"]',
6
+ '[data-cy="' + testId + '"]'
7
+ ];
8
+ };
9
+ var byTestId = function(testId) {
10
+ return dataTestSelectors(testId).join(', ');
11
+ };
12
+ // @deprecated standard is byTestId
13
+ var dataTestSelector = function(testId) {
14
+ return byTestId(testId);
15
+ };
16
+ var parseDataTestID = function(testId) {
17
+ var _testId_split_shift;
18
+ return ((_testId_split_shift = testId.split(',').shift()) == null ? undefined : _testId_split_shift.trim().slice(15).slice(0, -2)) || '';
19
+ };
20
+ var byDataSelectors = function(dateTestId, dataSelectors, value) {
21
+ var dataIds = dateTestId.split(',').map(function(d) {
22
+ return d.trim();
23
+ });
24
+ var selectors = [];
25
+ for(var index = 0; index < dataSelectors.length; index++){
26
+ var dataSelector = dataSelectors[index];
27
+ for(var index1 = 0; index1 < dataIds.length; index1++){
28
+ var dataId = dataIds[index1];
29
+ selectors.push(dataId + "[data-" + dataSelector + '="' + value + '"]');
30
+ }
31
+ }
32
+ return selectors.join(',');
33
+ };
34
+
35
+ /**
36
+ * Selectors
37
+ */ var selectors = {
38
+ accordion: {
39
+ /**
40
+ * The trigger button, which shows and hides the content / details.
41
+ */ trigger: byTestId('bal-accordion-trigger')},
42
+ button: {
43
+ /**
44
+ * Native button element.
45
+ */ native: byTestId('bal-button')},
46
+ pagination: {
47
+ /**
48
+ * Pagination left control.
49
+ */ previous: byTestId('bal-pagination-controls-left'),
50
+ /**
51
+ * Pagination right control.
52
+ */ next: byTestId('bal-pagination-controls-right'),
53
+ /**
54
+ * bal-button of the number of the page..
55
+ */ pages: '.bal-pagination__nav__pagination-list > li > bal-button',
56
+ /**
57
+ * The native button of the number of the page.
58
+ */ button: '.bal-pagination__nav__pagination-list > li > bal-button > button'
59
+ },
60
+ tag: {
61
+ /**
62
+ * Close button.
63
+ */ close: byTestId('bal-tag-close')
64
+ },
65
+ checkbox: {
66
+ /**
67
+ * Native input element.
68
+ */ input: byTestId('bal-checkbox-input'),
69
+ /**
70
+ * Label element.
71
+ */ label: byTestId('bal-checkbox-label')},
72
+ field: {
73
+ /**
74
+ * Hint element.
75
+ */ hint: byTestId('bal-field-hint')
76
+ },
77
+ slider: {
78
+ /**
79
+ * Native input element.
80
+ */ native: byTestId('bal-input-slider')
81
+ },
82
+ input: {
83
+ /**
84
+ * Native input element.
85
+ */ native: byTestId('bal-input')
86
+ },
87
+ dateInput: {
88
+ /**
89
+ * Native input element.
90
+ */ native: byTestId('bal-date-input')
91
+ },
92
+ numberInput: {
93
+ /**
94
+ * Native input element.
95
+ */ native: byTestId('bal-number-input')
96
+ },
97
+ radio: {
98
+ /**
99
+ * Native input element.
100
+ */ input: byTestId('bal-radio-input'),
101
+ /**
102
+ * Native label element.
103
+ */ label: byTestId('bal-radio-label')},
104
+ select: {
105
+ /**
106
+ * Native input element.
107
+ */ input: 'input.data-test-select-input',
108
+ /**
109
+ * Select option.
110
+ */ options: 'button.bal-select__option',
111
+ /**
112
+ * Multi select tag .
113
+ */ chips: byTestId('bal-select-chip')
114
+ },
115
+ dropdown: {
116
+ /**
117
+ * Native input element.
118
+ */ input: '[data-native]',
119
+ /**
120
+ * Select option.
121
+ */ options: 'bal-option',
122
+ /**
123
+ * Trigger to open and close the popup.
124
+ */ trigger: byTestId('bal-dropdown-trigger'),
125
+ /**
126
+ * Multi select tag .
127
+ */ chips: byTestId('bal-dropdown-chip')
128
+ },
129
+ popover: {
130
+ /**
131
+ * Popover trigger.
132
+ */ trigger: 'bal-popover-trigger',
133
+ /**
134
+ * Popover content element.
135
+ */ content: byTestId('bal-popover-content')
136
+ },
137
+ textarea: {
138
+ /**
139
+ * Native input element.
140
+ */ native: byTestId('bal-textarea-input')
141
+ },
142
+ steps: {
143
+ /**
144
+ * Step option
145
+ */ option: byTestId('bal-steps-option'),
146
+ /**
147
+ * Step option label
148
+ */ optionLabel: byTestId('bal-steps-option-label')
149
+ },
150
+ tabs: {
151
+ /**
152
+ * Tab item.
153
+ */ item: byTestId('bal-tabs-item'),
154
+ /**
155
+ * Tab item label.
156
+ */ itemLabel: byTestId('bal-tabs-item-label')
157
+ },
158
+ toast: {
159
+ /**
160
+ * Toast element.
161
+ */ main: '.bal-notices > .bal-notices__inner > .bal-toast'},
162
+ snackbar: {
163
+ /**
164
+ * Snackbar element.
165
+ */ main: '.bal-notices > .bal-notices__inner > .bal-snackbar'},
166
+ hint: {
167
+ /**
168
+ * Hint trigger element.
169
+ */ trigger: byTestId('bal-hint-trigger'),
170
+ /**
171
+ * Hint content element.
172
+ */ content: byTestId('bal-hint-content'),
173
+ /**
174
+ * Hint close element.
175
+ */ close: byTestId('bal-hint-close')
176
+ }
177
+ };
178
+
179
+ export { byDataSelectors as a, byTestId as b, dataTestSelector as d, parseDataTestID as p, selectors as s };
@@ -1,34 +1,34 @@
1
- import './commands/custom/get.types';
2
- import './commands/custom/component.types';
3
- import './commands/custom/platform.types';
4
- import './commands/custom/visit.types';
5
- import './commands/custom/get.command';
6
- import './commands/custom/component.command';
7
- import './commands/custom/platform.command';
8
- import './commands/custom/visit.command';
9
- import './commands/custom/bal-accordion.types';
10
- import './commands/custom/bal-popover.types';
11
- import './commands/custom/bal-popup.types';
12
- import './commands/custom/bal-hint.types';
13
- import './commands/custom/bal-modal.types';
14
- import './commands/custom/bal-pagination.types';
15
- import './commands/custom/bal-select.types';
16
- import './commands/custom/bal-snackbar.types';
17
- import './commands/custom/bal-steps.types';
18
- import './commands/custom/bal-tabs.types';
19
- import './commands/custom/bal-toast.types';
20
- import './commands/custom/bal-field.types';
21
- import './commands/custom/bal-input-stepper.types';
22
- import './commands/custom/bal-accordion.command';
23
- import './commands/custom/bal-popover.command';
24
- import './commands/custom/bal-popup.command';
25
- import './commands/custom/bal-hint.command';
26
- import './commands/custom/bal-modal.command';
27
- import './commands/custom/bal-pagination.command';
28
- import './commands/custom/bal-select.command';
29
- import './commands/custom/bal-snackbar.command';
30
- import './commands/custom/bal-steps.command';
31
- import './commands/custom/bal-tabs.command';
32
- import './commands/custom/bal-toast.command';
33
- import './commands/custom/bal-field.command';
34
- import './commands/custom/bal-input-stepper.command';
1
+ import './commands/custom/get.types';
2
+ import './commands/custom/component.types';
3
+ import './commands/custom/platform.types';
4
+ import './commands/custom/visit.types';
5
+ import './commands/custom/get.command';
6
+ import './commands/custom/component.command';
7
+ import './commands/custom/platform.command';
8
+ import './commands/custom/visit.command';
9
+ import './commands/custom/bal-accordion.types';
10
+ import './commands/custom/bal-popover.types';
11
+ import './commands/custom/bal-popup.types';
12
+ import './commands/custom/bal-hint.types';
13
+ import './commands/custom/bal-modal.types';
14
+ import './commands/custom/bal-pagination.types';
15
+ import './commands/custom/bal-select.types';
16
+ import './commands/custom/bal-snackbar.types';
17
+ import './commands/custom/bal-steps.types';
18
+ import './commands/custom/bal-tabs.types';
19
+ import './commands/custom/bal-toast.types';
20
+ import './commands/custom/bal-field.types';
21
+ import './commands/custom/bal-input-stepper.types';
22
+ import './commands/custom/bal-accordion.command';
23
+ import './commands/custom/bal-popover.command';
24
+ import './commands/custom/bal-popup.command';
25
+ import './commands/custom/bal-hint.command';
26
+ import './commands/custom/bal-modal.command';
27
+ import './commands/custom/bal-pagination.command';
28
+ import './commands/custom/bal-select.command';
29
+ import './commands/custom/bal-snackbar.command';
30
+ import './commands/custom/bal-steps.command';
31
+ import './commands/custom/bal-tabs.command';
32
+ import './commands/custom/bal-toast.command';
33
+ import './commands/custom/bal-field.command';
34
+ import './commands/custom/bal-input-stepper.command';
@@ -1,9 +1,9 @@
1
- import './commands/overrides/blur.command';
2
- import './commands/overrides/check.command';
3
- import './commands/overrides/uncheck.command';
4
- import './commands/overrides/clear.command';
5
- import './commands/overrides/click.command';
6
- import './commands/overrides/focus.command';
7
- import './commands/overrides/should.command';
8
- import './commands/overrides/select.command';
9
- import './commands/overrides/type.command';
1
+ import './commands/overrides/blur.command';
2
+ import './commands/overrides/check.command';
3
+ import './commands/overrides/uncheck.command';
4
+ import './commands/overrides/clear.command';
5
+ import './commands/overrides/click.command';
6
+ import './commands/overrides/focus.command';
7
+ import './commands/overrides/should.command';
8
+ import './commands/overrides/select.command';
9
+ import './commands/overrides/type.command';
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,15 +1,15 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- declare namespace Cypress {
5
- interface Chainable {
6
- /**
7
- * Asserts if the accordion is open.
8
- */
9
- balAccordionIsOpen(options?: Partial<Loggable>): Chainable<JQuery>;
10
- /**
11
- * Asserts if the accordion is closed.
12
- */
13
- balAccordionIsClosed(options?: Partial<Loggable>): Chainable<JQuery>;
14
- }
15
- }
1
+ /// <reference types="cypress" />
2
+ /// <reference types="cypress" />
3
+ /// <reference types="cypress" />
4
+ declare namespace Cypress {
5
+ interface Chainable {
6
+ /**
7
+ * Asserts if the accordion is open.
8
+ */
9
+ balAccordionIsOpen(options?: Partial<Loggable>): Chainable<JQuery>;
10
+ /**
11
+ * Asserts if the accordion is closed.
12
+ */
13
+ balAccordionIsClosed(options?: Partial<Loggable>): Chainable<JQuery>;
14
+ }
15
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,11 +1,11 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- declare namespace Cypress {
5
- interface Chainable {
6
- /**
7
- * Returns the hint component of the label.
8
- */
9
- balFieldFindHint(options?: Partial<Loggable>): Chainable<JQuery>;
10
- }
11
- }
1
+ /// <reference types="cypress" />
2
+ /// <reference types="cypress" />
3
+ /// <reference types="cypress" />
4
+ declare namespace Cypress {
5
+ interface Chainable {
6
+ /**
7
+ * Returns the hint component of the label.
8
+ */
9
+ balFieldFindHint(options?: Partial<Loggable>): Chainable<JQuery>;
10
+ }
11
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,15 +1,15 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- declare namespace Cypress {
5
- interface Chainable {
6
- /**
7
- * Returns the hint content overlay with the title, content and the close button.
8
- */
9
- balHintFindOverlay(options?: Partial<Loggable>): Chainable<JQuery>;
10
- /**
11
- * Returns the close button of the overlay content.
12
- */
13
- balHintFindCloseButton(options?: Partial<Loggable>): Chainable<JQuery>;
14
- }
15
- }
1
+ /// <reference types="cypress" />
2
+ /// <reference types="cypress" />
3
+ /// <reference types="cypress" />
4
+ declare namespace Cypress {
5
+ interface Chainable {
6
+ /**
7
+ * Returns the hint content overlay with the title, content and the close button.
8
+ */
9
+ balHintFindOverlay(options?: Partial<Loggable>): Chainable<JQuery>;
10
+ /**
11
+ * Returns the close button of the overlay content.
12
+ */
13
+ balHintFindCloseButton(options?: Partial<Loggable>): Chainable<JQuery>;
14
+ }
15
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,15 +1,15 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- declare namespace Cypress {
5
- interface Chainable {
6
- /**
7
- * Increases the value of the control
8
- */
9
- balInputStepperIncrease(options?: Partial<Loggable>): Chainable<JQuery>;
10
- /**
11
- * Decreases the value of the control
12
- */
13
- balInputStepperDecrease(options?: Partial<Loggable>): Chainable<JQuery>;
14
- }
15
- }
1
+ /// <reference types="cypress" />
2
+ /// <reference types="cypress" />
3
+ /// <reference types="cypress" />
4
+ declare namespace Cypress {
5
+ interface Chainable {
6
+ /**
7
+ * Increases the value of the control
8
+ */
9
+ balInputStepperIncrease(options?: Partial<Loggable>): Chainable<JQuery>;
10
+ /**
11
+ * Decreases the value of the control
12
+ */
13
+ balInputStepperDecrease(options?: Partial<Loggable>): Chainable<JQuery>;
14
+ }
15
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,24 +1,24 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- declare namespace Cypress {
5
- interface Chainable {
6
- /**
7
- * Finds the open modal and returns it.
8
- */
9
- balModalFindOpen(options?: Partial<Loggable>): Chainable<JQuery>;
10
- /**
11
- * Assert if the modal is open.
12
- */
13
- balModalIsOpen(options?: Partial<Loggable>): Chainable<JQuery>;
14
- /**
15
- * Assert if the modal is closed. Only works for modals,
16
- * which are not created with the modal service.
17
- */
18
- balModalIsClosed(options?: Partial<Loggable>): Chainable<JQuery>;
19
- /**
20
- * Closes the selected modal.
21
- */
22
- balModalClose(options?: Partial<Loggable>): Chainable<JQuery>;
23
- }
24
- }
1
+ /// <reference types="cypress" />
2
+ /// <reference types="cypress" />
3
+ /// <reference types="cypress" />
4
+ declare namespace Cypress {
5
+ interface Chainable {
6
+ /**
7
+ * Finds the open modal and returns it.
8
+ */
9
+ balModalFindOpen(options?: Partial<Loggable>): Chainable<JQuery>;
10
+ /**
11
+ * Assert if the modal is open.
12
+ */
13
+ balModalIsOpen(options?: Partial<Loggable>): Chainable<JQuery>;
14
+ /**
15
+ * Assert if the modal is closed. Only works for modals,
16
+ * which are not created with the modal service.
17
+ */
18
+ balModalIsClosed(options?: Partial<Loggable>): Chainable<JQuery>;
19
+ /**
20
+ * Closes the selected modal.
21
+ */
22
+ balModalClose(options?: Partial<Loggable>): Chainable<JQuery>;
23
+ }
24
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,23 +1,23 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- declare namespace Cypress {
5
- interface Chainable {
6
- /**
7
- * Returns all the page buttons.
8
- */
9
- balPaginationFindPages(options?: Partial<Loggable>): Chainable<JQuery>;
10
- /**
11
- * Returns the current listed page button.
12
- */
13
- balPaginationFindCurrentPage(options?: Partial<Loggable>): Chainable<JQuery>;
14
- /**
15
- * Returns the next button to navigate to next page.
16
- */
17
- balPaginationFindNextButton(options?: Partial<Loggable>): Chainable<JQuery>;
18
- /**
19
- * Returns the previous button to navigate to previous page.
20
- */
21
- balPaginationFindPreviousButton(options?: Partial<Loggable>): Chainable<JQuery>;
22
- }
23
- }
1
+ /// <reference types="cypress" />
2
+ /// <reference types="cypress" />
3
+ /// <reference types="cypress" />
4
+ declare namespace Cypress {
5
+ interface Chainable {
6
+ /**
7
+ * Returns all the page buttons.
8
+ */
9
+ balPaginationFindPages(options?: Partial<Loggable>): Chainable<JQuery>;
10
+ /**
11
+ * Returns the current listed page button.
12
+ */
13
+ balPaginationFindCurrentPage(options?: Partial<Loggable>): Chainable<JQuery>;
14
+ /**
15
+ * Returns the next button to navigate to next page.
16
+ */
17
+ balPaginationFindNextButton(options?: Partial<Loggable>): Chainable<JQuery>;
18
+ /**
19
+ * Returns the previous button to navigate to previous page.
20
+ */
21
+ balPaginationFindPreviousButton(options?: Partial<Loggable>): Chainable<JQuery>;
22
+ }
23
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,27 +1,27 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- declare namespace Cypress {
5
- interface Chainable {
6
- /**
7
- * Opens and closes the popover.
8
- */
9
- balPopoverToggle(options?: Partial<Loggable>): Chainable<JQuery>;
10
- /**
11
- * Asserts if the popover is open.
12
- */
13
- balPopoverIsOpen(options?: Partial<Loggable>): Chainable<JQuery>;
14
- /**
15
- * Asserts if the popover is closed.
16
- */
17
- balPopoverIsClosed(options?: Partial<Loggable>): Chainable<JQuery>;
18
- /**
19
- * Asserts if the trigger button contains the given content.
20
- */
21
- balPopoverTriggerContains(content: string | number | RegExp, options?: Partial<Loggable & Timeoutable & CaseMatchable & Shadow>): Chainable<JQuery>;
22
- /**
23
- * Asserts if the popover menu contains the given content.
24
- */
25
- balPopoverContentContains(content: string | number | RegExp, options?: Partial<Loggable & Timeoutable & CaseMatchable & Shadow>): Chainable<JQuery>;
26
- }
27
- }
1
+ /// <reference types="cypress" />
2
+ /// <reference types="cypress" />
3
+ /// <reference types="cypress" />
4
+ declare namespace Cypress {
5
+ interface Chainable {
6
+ /**
7
+ * Opens and closes the popover.
8
+ */
9
+ balPopoverToggle(options?: Partial<Loggable>): Chainable<JQuery>;
10
+ /**
11
+ * Asserts if the popover is open.
12
+ */
13
+ balPopoverIsOpen(options?: Partial<Loggable>): Chainable<JQuery>;
14
+ /**
15
+ * Asserts if the popover is closed.
16
+ */
17
+ balPopoverIsClosed(options?: Partial<Loggable>): Chainable<JQuery>;
18
+ /**
19
+ * Asserts if the trigger button contains the given content.
20
+ */
21
+ balPopoverTriggerContains(content: string | number | RegExp, options?: Partial<Loggable & Timeoutable & CaseMatchable & Shadow>): Chainable<JQuery>;
22
+ /**
23
+ * Asserts if the popover menu contains the given content.
24
+ */
25
+ balPopoverContentContains(content: string | number | RegExp, options?: Partial<Loggable & Timeoutable & CaseMatchable & Shadow>): Chainable<JQuery>;
26
+ }
27
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,15 +1,15 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- declare namespace Cypress {
5
- interface Chainable {
6
- /**
7
- * Asserts if the popover is open.
8
- */
9
- balPopupIsOpen(options?: Partial<Loggable>): Chainable<JQuery>;
10
- /**
11
- * Asserts if the popover is closed.
12
- */
13
- balPopupIsClosed(options?: Partial<Loggable>): Chainable<JQuery>;
14
- }
15
- }
1
+ /// <reference types="cypress" />
2
+ /// <reference types="cypress" />
3
+ /// <reference types="cypress" />
4
+ declare namespace Cypress {
5
+ interface Chainable {
6
+ /**
7
+ * Asserts if the popover is open.
8
+ */
9
+ balPopupIsOpen(options?: Partial<Loggable>): Chainable<JQuery>;
10
+ /**
11
+ * Asserts if the popover is closed.
12
+ */
13
+ balPopupIsClosed(options?: Partial<Loggable>): Chainable<JQuery>;
14
+ }
15
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};