@baloise/ds-testing 0.0.5-nightly.e56f740
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/LICENSE +201 -0
- package/README.md +45 -0
- package/add-custom-commands.esm.d.ts +1 -0
- package/add-custom-commands.esm.js +4 -0
- package/add-override-commands.esm.d.ts +1 -0
- package/add-override-commands.esm.js +3 -0
- package/bal-input-stepper.command.esm.js +685 -0
- package/helpers.esm.js +359 -0
- package/index.esm.d.ts +1 -0
- package/index.esm.js +891 -0
- package/index.esm2.js +308 -0
- package/package.json +48 -0
- package/selectors.esm.d.ts +1 -0
- package/selectors.esm.js +1 -0
- package/src/add-custom-commands.d.ts +36 -0
- package/src/add-override-commands.d.ts +9 -0
- package/src/commands/custom/bal-accordion.command.d.ts +1 -0
- package/src/commands/custom/bal-accordion.types.d.ts +15 -0
- package/src/commands/custom/bal-datepicker.command.d.ts +1 -0
- package/src/commands/custom/bal-datepicker.types.d.ts +31 -0
- package/src/commands/custom/bal-field.command.d.ts +1 -0
- package/src/commands/custom/bal-field.types.d.ts +11 -0
- package/src/commands/custom/bal-hint.command.d.ts +1 -0
- package/src/commands/custom/bal-hint.types.d.ts +15 -0
- package/src/commands/custom/bal-input-stepper.command.d.ts +1 -0
- package/src/commands/custom/bal-input-stepper.types.d.ts +15 -0
- package/src/commands/custom/bal-modal.command.d.ts +1 -0
- package/src/commands/custom/bal-modal.types.d.ts +24 -0
- package/src/commands/custom/bal-pagination.command.d.ts +1 -0
- package/src/commands/custom/bal-pagination.types.d.ts +23 -0
- package/src/commands/custom/bal-popover.command.d.ts +1 -0
- package/src/commands/custom/bal-popover.types.d.ts +27 -0
- package/src/commands/custom/bal-popup.command.d.ts +1 -0
- package/src/commands/custom/bal-popup.types.d.ts +15 -0
- package/src/commands/custom/bal-select.command.d.ts +1 -0
- package/src/commands/custom/bal-select.types.d.ts +19 -0
- package/src/commands/custom/bal-snackbar.command.d.ts +1 -0
- package/src/commands/custom/bal-snackbar.types.d.ts +11 -0
- package/src/commands/custom/bal-steps.command.d.ts +1 -0
- package/src/commands/custom/bal-steps.types.d.ts +27 -0
- package/src/commands/custom/bal-tabs.command.d.ts +1 -0
- package/src/commands/custom/bal-tabs.types.d.ts +31 -0
- package/src/commands/custom/bal-toast.command.d.ts +1 -0
- package/src/commands/custom/bal-toast.types.d.ts +11 -0
- package/src/commands/custom/component.command.d.ts +1 -0
- package/src/commands/custom/component.types.d.ts +43 -0
- package/src/commands/custom/get.command.d.ts +1 -0
- package/src/commands/custom/get.types.d.ts +43 -0
- package/src/commands/custom/platform.command.d.ts +1 -0
- package/src/commands/custom/platform.types.d.ts +11 -0
- package/src/commands/custom/visit.command.d.ts +1 -0
- package/src/commands/custom/visit.types.d.ts +10 -0
- package/src/commands/helpers.d.ts +48 -0
- package/src/commands/overrides/blur.command.d.ts +1 -0
- package/src/commands/overrides/check.command.d.ts +1 -0
- package/src/commands/overrides/clear.command.d.ts +1 -0
- package/src/commands/overrides/click.command.d.ts +1 -0
- package/src/commands/overrides/focus.command.d.ts +1 -0
- package/src/commands/overrides/select.command.d.ts +1 -0
- package/src/commands/overrides/should.command.d.ts +1 -0
- package/src/commands/overrides/type.command.d.ts +1 -0
- package/src/commands/overrides/uncheck.command.d.ts +1 -0
- package/src/index.d.ts +25 -0
- package/src/legacy/accessors/accordion.accessor.d.ts +29 -0
- package/src/legacy/accessors/button.accessor.d.ts +23 -0
- package/src/legacy/accessors/checkbox.accessor.d.ts +25 -0
- package/src/legacy/accessors/date-picker.accessor.d.ts +24 -0
- package/src/legacy/accessors/drop-down.accessor.d.ts +31 -0
- package/src/legacy/accessors/error.accessor.d.ts +25 -0
- package/src/legacy/accessors/icon-accessor.d.ts +23 -0
- package/src/legacy/accessors/input.accessor.d.ts +30 -0
- package/src/legacy/accessors/link.accessor.d.ts +39 -0
- package/src/legacy/accessors/list.accessor.d.ts +23 -0
- package/src/legacy/accessors/mixins/andable.d.ts +5 -0
- package/src/legacy/accessors/mixins/attachable.d.ts +6 -0
- package/src/legacy/accessors/mixins/attributable.d.ts +7 -0
- package/src/legacy/accessors/mixins/blurable.d.ts +6 -0
- package/src/legacy/accessors/mixins/checkable.d.ts +7 -0
- package/src/legacy/accessors/mixins/clearable.d.ts +6 -0
- package/src/legacy/accessors/mixins/clickable.d.ts +7 -0
- package/src/legacy/accessors/mixins/containable.d.ts +5 -0
- package/src/legacy/accessors/mixins/disableable.d.ts +5 -0
- package/src/legacy/accessors/mixins/eachable.d.ts +5 -0
- package/src/legacy/accessors/mixins/existable.d.ts +5 -0
- package/src/legacy/accessors/mixins/findable.d.ts +5 -0
- package/src/legacy/accessors/mixins/invokable.d.ts +5 -0
- package/src/legacy/accessors/mixins/lengthable.d.ts +5 -0
- package/src/legacy/accessors/mixins/mixins.d.ts +12 -0
- package/src/legacy/accessors/mixins/nthSelectable.d.ts +7 -0
- package/src/legacy/accessors/mixins/selectable.d.ts +4 -0
- package/src/legacy/accessors/mixins/shouldable.d.ts +5 -0
- package/src/legacy/accessors/mixins/thenable.d.ts +5 -0
- package/src/legacy/accessors/mixins/typeable.d.ts +6 -0
- package/src/legacy/accessors/mixins/urlable.d.ts +6 -0
- package/src/legacy/accessors/mixins/visible.d.ts +5 -0
- package/src/legacy/accessors/mixins/waitable.d.ts +5 -0
- package/src/legacy/accessors/multi-select-button.accessor.d.ts +24 -0
- package/src/legacy/accessors/navigation.accessor.d.ts +22 -0
- package/src/legacy/accessors/radio.accessor.d.ts +23 -0
- package/src/legacy/accessors/select-button.accessor.d.ts +24 -0
- package/src/legacy/accessors/table.accessor.d.ts +27 -0
- package/src/legacy/accessors/tabs.accessor.d.ts +26 -0
- package/src/legacy/accessors/text.accessor.d.ts +23 -0
- package/src/legacy/accessors/tile.accessor.d.ts +27 -0
- package/src/legacy/accessors/toast.accessor.d.ts +24 -0
- package/src/legacy/accessors/tooltip.accessor.d.ts +23 -0
- package/src/legacy/accessors/typeahead.accessor.d.ts +26 -0
- package/src/legacy/index.d.ts +44 -0
- package/src/selectors/index.d.ts +342 -0
- package/src/selectors/selectors.util.d.ts +4 -0
- package/src/selectors.d.ts +1 -0
- package/src/viewports.d.ts +7 -0
- package/type.command.esm.js +471 -0
- package/viewports.esm.d.ts +1 -0
- package/viewports.esm.js +46 -0
package/index.esm2.js
ADDED
|
@@ -0,0 +1,308 @@
|
|
|
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 ? void 0 : _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
|
+
/**
|
|
43
|
+
* The content or the hidden part of the accordion.
|
|
44
|
+
*/ details: byTestId("bal-accordion-details"),
|
|
45
|
+
/**
|
|
46
|
+
* The header or visible part of the accordion
|
|
47
|
+
*/ summary: byTestId("bal-accordion-summary")
|
|
48
|
+
},
|
|
49
|
+
badge: {
|
|
50
|
+
/**
|
|
51
|
+
* Badge label.
|
|
52
|
+
*/ label: byTestId("bal-badge-label")
|
|
53
|
+
},
|
|
54
|
+
button: {
|
|
55
|
+
/**
|
|
56
|
+
* Native button element.
|
|
57
|
+
*/ native: byTestId("bal-button"),
|
|
58
|
+
/**
|
|
59
|
+
* Button label.
|
|
60
|
+
*/ label: byTestId("bal-button-label")
|
|
61
|
+
},
|
|
62
|
+
carousel: {
|
|
63
|
+
/**
|
|
64
|
+
* Pagination left control.
|
|
65
|
+
*/ paginationPrevious: byTestId("bal-pagination-controls-left"),
|
|
66
|
+
/**
|
|
67
|
+
* Pagination right control.
|
|
68
|
+
*/ paginationNext: byTestId("bal-pagination-controls-right"),
|
|
69
|
+
/**
|
|
70
|
+
* Carousel right control.
|
|
71
|
+
*/ carouselControlPrevious: byTestId("bal-carousel-control-left"),
|
|
72
|
+
/**
|
|
73
|
+
* Carousel left control.
|
|
74
|
+
*/ carouselControlNext: byTestId("bal-carousel-control-right")
|
|
75
|
+
},
|
|
76
|
+
close: {
|
|
77
|
+
/**
|
|
78
|
+
* The trigger button.
|
|
79
|
+
*/ button: byTestId("bal-close")
|
|
80
|
+
},
|
|
81
|
+
data: {
|
|
82
|
+
/**
|
|
83
|
+
* Editable button.
|
|
84
|
+
*/ editable: byTestId("bal-data-value-button")
|
|
85
|
+
},
|
|
86
|
+
footer: {
|
|
87
|
+
/**
|
|
88
|
+
* Language select element.
|
|
89
|
+
*/ language: byTestId('bal-footer-language"')
|
|
90
|
+
},
|
|
91
|
+
heading: {
|
|
92
|
+
/**
|
|
93
|
+
* Native h1 element.
|
|
94
|
+
*/ native: byTestId("bal-heading")
|
|
95
|
+
},
|
|
96
|
+
notification: {
|
|
97
|
+
/**
|
|
98
|
+
* Notification content element.
|
|
99
|
+
*/ content: byTestId("bal-notification-content")
|
|
100
|
+
},
|
|
101
|
+
pagination: {
|
|
102
|
+
/**
|
|
103
|
+
* Pagination left control.
|
|
104
|
+
*/ previous: byTestId("bal-pagination-controls-left"),
|
|
105
|
+
/**
|
|
106
|
+
* Pagination right control.
|
|
107
|
+
*/ next: byTestId("bal-pagination-controls-right"),
|
|
108
|
+
/**
|
|
109
|
+
* Pagination ul list.
|
|
110
|
+
*/ list: byTestId("bal-pagination-list"),
|
|
111
|
+
/**
|
|
112
|
+
* The number of the page.
|
|
113
|
+
*/ pageNumber: byTestId("bal-pagination-page-number"),
|
|
114
|
+
/**
|
|
115
|
+
* bal-button of the number of the page..
|
|
116
|
+
*/ pages: ".bal-pagination__nav__pagination-list > li > bal-button",
|
|
117
|
+
/**
|
|
118
|
+
* The native button of the number of the page.
|
|
119
|
+
*/ button: ".bal-pagination__nav__pagination-list > li > bal-button > button"
|
|
120
|
+
},
|
|
121
|
+
tag: {
|
|
122
|
+
/**
|
|
123
|
+
* Tag label..
|
|
124
|
+
*/ label: byTestId("bal-tag-label"),
|
|
125
|
+
/**
|
|
126
|
+
* Close button.
|
|
127
|
+
*/ close: byTestId("bal-tag-close")
|
|
128
|
+
},
|
|
129
|
+
text: {
|
|
130
|
+
/**
|
|
131
|
+
* Native p element.
|
|
132
|
+
*/ native: byTestId("bal-text")
|
|
133
|
+
},
|
|
134
|
+
checkbox: {
|
|
135
|
+
/**
|
|
136
|
+
* Native input element.
|
|
137
|
+
*/ input: byTestId("bal-checkbox-input"),
|
|
138
|
+
/**
|
|
139
|
+
* Label element.
|
|
140
|
+
*/ label: byTestId("bal-checkbox-label"),
|
|
141
|
+
/**
|
|
142
|
+
* Label span element.
|
|
143
|
+
*/ text: byTestId("bal-checkbox-text")
|
|
144
|
+
},
|
|
145
|
+
datepicker: {
|
|
146
|
+
/**
|
|
147
|
+
* Native input element.
|
|
148
|
+
*/ input: byTestId("bal-datepicker-input")
|
|
149
|
+
},
|
|
150
|
+
field: {
|
|
151
|
+
/**
|
|
152
|
+
* Hint element.
|
|
153
|
+
*/ hint: byTestId("bal-field-hint")
|
|
154
|
+
},
|
|
155
|
+
fileUpload: {
|
|
156
|
+
/**
|
|
157
|
+
* Native input element.
|
|
158
|
+
*/ input: byTestId("bal-file-upload-input"),
|
|
159
|
+
/**
|
|
160
|
+
* Native span element.
|
|
161
|
+
*/ label: byTestId("bal-file-upload-label")
|
|
162
|
+
},
|
|
163
|
+
slider: {
|
|
164
|
+
/**
|
|
165
|
+
* Native input element.
|
|
166
|
+
*/ native: byTestId("bal-input-slider")
|
|
167
|
+
},
|
|
168
|
+
inputStepper: {
|
|
169
|
+
/**
|
|
170
|
+
* Decrease button.
|
|
171
|
+
*/ decrease: byTestId("bal-input-stepper-decrease"),
|
|
172
|
+
/**
|
|
173
|
+
* Increase button.
|
|
174
|
+
*/ increase: byTestId("bal-input-stepper-increase"),
|
|
175
|
+
/**
|
|
176
|
+
* Native input element.
|
|
177
|
+
*/ native: byTestId("bal-input-stepper"),
|
|
178
|
+
/**
|
|
179
|
+
* Text element.
|
|
180
|
+
*/ text: byTestId("bal-input-stepper-text")
|
|
181
|
+
},
|
|
182
|
+
input: {
|
|
183
|
+
/**
|
|
184
|
+
* Native input element.
|
|
185
|
+
*/ native: byTestId("bal-input")
|
|
186
|
+
},
|
|
187
|
+
dateInput: {
|
|
188
|
+
/**
|
|
189
|
+
* Native input element.
|
|
190
|
+
*/ native: byTestId("bal-date-input")
|
|
191
|
+
},
|
|
192
|
+
numberInput: {
|
|
193
|
+
/**
|
|
194
|
+
* Native input element.
|
|
195
|
+
*/ native: byTestId("bal-number-input")
|
|
196
|
+
},
|
|
197
|
+
radio: {
|
|
198
|
+
/**
|
|
199
|
+
* Native input element.
|
|
200
|
+
*/ input: byTestId("bal-radio-input"),
|
|
201
|
+
/**
|
|
202
|
+
* Native label element.
|
|
203
|
+
*/ label: byTestId("bal-radio-label"),
|
|
204
|
+
/**
|
|
205
|
+
* Native span element.
|
|
206
|
+
*/ text: byTestId("bal-radio-text")
|
|
207
|
+
},
|
|
208
|
+
select: {
|
|
209
|
+
/**
|
|
210
|
+
* Native input element.
|
|
211
|
+
*/ input: "input.data-test-select-input",
|
|
212
|
+
/**
|
|
213
|
+
* Select option.
|
|
214
|
+
*/ options: "button.bal-select__option",
|
|
215
|
+
/**
|
|
216
|
+
* Multi select tag .
|
|
217
|
+
*/ chips: byTestId("bal-select-chip")
|
|
218
|
+
},
|
|
219
|
+
popover: {
|
|
220
|
+
/**
|
|
221
|
+
* Popover trigger.
|
|
222
|
+
*/ trigger: "bal-popover-trigger",
|
|
223
|
+
/**
|
|
224
|
+
* Popover content element.
|
|
225
|
+
*/ content: byTestId("bal-popover-content")
|
|
226
|
+
},
|
|
227
|
+
popup: {
|
|
228
|
+
/**
|
|
229
|
+
* Popup trigger.
|
|
230
|
+
*/ trigger: "[bal-popup]",
|
|
231
|
+
/**
|
|
232
|
+
* Popup content element.
|
|
233
|
+
*/ content: byTestId("bal-popup-content"),
|
|
234
|
+
/**
|
|
235
|
+
* Popup close button in the head.
|
|
236
|
+
*/ close: byTestId("bal-popup-close"),
|
|
237
|
+
/**
|
|
238
|
+
* Popup label / heading element.
|
|
239
|
+
*/ label: byTestId("bal-popup-label")
|
|
240
|
+
},
|
|
241
|
+
textarea: {
|
|
242
|
+
/**
|
|
243
|
+
* Native input element.
|
|
244
|
+
*/ native: byTestId("bal-textarea-input")
|
|
245
|
+
},
|
|
246
|
+
modal: {
|
|
247
|
+
/**
|
|
248
|
+
* Modal element.
|
|
249
|
+
*/ main: "div.modal"
|
|
250
|
+
},
|
|
251
|
+
steps: {
|
|
252
|
+
/**
|
|
253
|
+
* Step option
|
|
254
|
+
*/ option: byTestId("bal-steps-option"),
|
|
255
|
+
/**
|
|
256
|
+
* Step option label
|
|
257
|
+
*/ optionLabel: byTestId("bal-steps-option-label")
|
|
258
|
+
},
|
|
259
|
+
tabs: {
|
|
260
|
+
/**
|
|
261
|
+
* Tab item.
|
|
262
|
+
*/ item: byTestId("bal-tabs-item"),
|
|
263
|
+
/**
|
|
264
|
+
* Tab item label.
|
|
265
|
+
*/ itemLabel: byTestId("bal-tabs-item-label")
|
|
266
|
+
},
|
|
267
|
+
toast: {
|
|
268
|
+
/**
|
|
269
|
+
* Toast element.
|
|
270
|
+
*/ main: ".bal-notices > .bal-toast",
|
|
271
|
+
/**
|
|
272
|
+
* Toast label element.
|
|
273
|
+
*/ label: byTestId("bal-toast-label"),
|
|
274
|
+
/**
|
|
275
|
+
* Toast close element.
|
|
276
|
+
*/ close: byTestId("bal-toast-close")
|
|
277
|
+
},
|
|
278
|
+
snackbar: {
|
|
279
|
+
/**
|
|
280
|
+
* Snackbar element.
|
|
281
|
+
*/ main: ".bal-notices > .bal-snackbar",
|
|
282
|
+
/**
|
|
283
|
+
* Snackbar heading element.
|
|
284
|
+
*/ heading: byTestId("bal-snackbar-heading"),
|
|
285
|
+
/**
|
|
286
|
+
* Snackbar label element.
|
|
287
|
+
*/ label: byTestId("bal-snackbar-label"),
|
|
288
|
+
/**
|
|
289
|
+
* Snackbar close element.
|
|
290
|
+
*/ close: byTestId("bal-snackbar-close"),
|
|
291
|
+
/**
|
|
292
|
+
* Snackbar action element.
|
|
293
|
+
*/ action: byTestId("bal-snackbar-action")
|
|
294
|
+
},
|
|
295
|
+
hint: {
|
|
296
|
+
/**
|
|
297
|
+
* Hint trigger element.
|
|
298
|
+
*/ trigger: byTestId("bal-hint-trigger"),
|
|
299
|
+
/**
|
|
300
|
+
* Hint content element.
|
|
301
|
+
*/ content: byTestId("bal-hint-content"),
|
|
302
|
+
/**
|
|
303
|
+
* Hint close element.
|
|
304
|
+
*/ close: byTestId("bal-hint-close")
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
export { byDataSelectors as a, byTestId as b, dataTestSelector as d, parseDataTestID as p, selectors as s };
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@baloise/ds-testing",
|
|
3
|
+
"version": "0.0.5-nightly.e56f740",
|
|
4
|
+
"description": "The Baloise Design-System is an open source project for styling awesome web applications that follow the Baloise corporate styling guidelines.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/baloise/design-system.git"
|
|
8
|
+
},
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://design.baloise.dev",
|
|
13
|
+
"license": "Apache-2.0",
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@baloise/ds-core": "0.0.5-nightly.e56f740",
|
|
16
|
+
"cypress-file-upload": "~5.0.8"
|
|
17
|
+
},
|
|
18
|
+
"type": "module",
|
|
19
|
+
"module": "./index.esm.js",
|
|
20
|
+
"main": "./dist/index.esm.js",
|
|
21
|
+
"types": "./dist/index.esm.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": "./dist/index.esm.js",
|
|
24
|
+
"./add-custom-commands": "./dist/add-custom-commands.esm.js",
|
|
25
|
+
"./add-override-commands": "./dist/add-override-commands.esm.js",
|
|
26
|
+
"./selectors": "./dist/selectors.esm.js",
|
|
27
|
+
"./viewports": "./dist/viewports.esm.js"
|
|
28
|
+
},
|
|
29
|
+
"typesVersions": {
|
|
30
|
+
"*": {
|
|
31
|
+
".": [
|
|
32
|
+
"./dist/index.esm.d.ts"
|
|
33
|
+
],
|
|
34
|
+
"add-custom-commands": [
|
|
35
|
+
"./dist/add-custom-commands.esm.d.ts"
|
|
36
|
+
],
|
|
37
|
+
"add-override-commands": [
|
|
38
|
+
"./dist/add-override-commands.esm.d.ts"
|
|
39
|
+
],
|
|
40
|
+
"selectors": [
|
|
41
|
+
"./dist/selectors.esm.d.ts"
|
|
42
|
+
],
|
|
43
|
+
"viewports": [
|
|
44
|
+
"./dist/viewports.esm.d.ts"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/selectors";
|
package/selectors.esm.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { b as byTestId, d as dataTestSelector, s as selectors } from './index.esm2.js';
|
|
@@ -0,0 +1,36 @@
|
|
|
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-datepicker.types';
|
|
11
|
+
import './commands/custom/bal-popover.types';
|
|
12
|
+
import './commands/custom/bal-popup.types';
|
|
13
|
+
import './commands/custom/bal-hint.types';
|
|
14
|
+
import './commands/custom/bal-modal.types';
|
|
15
|
+
import './commands/custom/bal-pagination.types';
|
|
16
|
+
import './commands/custom/bal-select.types';
|
|
17
|
+
import './commands/custom/bal-snackbar.types';
|
|
18
|
+
import './commands/custom/bal-steps.types';
|
|
19
|
+
import './commands/custom/bal-tabs.types';
|
|
20
|
+
import './commands/custom/bal-toast.types';
|
|
21
|
+
import './commands/custom/bal-field.types';
|
|
22
|
+
import './commands/custom/bal-input-stepper.types';
|
|
23
|
+
import './commands/custom/bal-accordion.command';
|
|
24
|
+
import './commands/custom/bal-datepicker.command';
|
|
25
|
+
import './commands/custom/bal-popover.command';
|
|
26
|
+
import './commands/custom/bal-popup.command';
|
|
27
|
+
import './commands/custom/bal-hint.command';
|
|
28
|
+
import './commands/custom/bal-modal.command';
|
|
29
|
+
import './commands/custom/bal-pagination.command';
|
|
30
|
+
import './commands/custom/bal-select.command';
|
|
31
|
+
import './commands/custom/bal-snackbar.command';
|
|
32
|
+
import './commands/custom/bal-steps.command';
|
|
33
|
+
import './commands/custom/bal-tabs.command';
|
|
34
|
+
import './commands/custom/bal-toast.command';
|
|
35
|
+
import './commands/custom/bal-field.command';
|
|
36
|
+
import './commands/custom/bal-input-stepper.command';
|
|
@@ -0,0 +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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
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 datepicker popover.
|
|
8
|
+
*/
|
|
9
|
+
balDatepickerToggle(options?: Partial<Loggable>): Chainable<JQuery>;
|
|
10
|
+
/**
|
|
11
|
+
* Assert if the datepicker popover is open.
|
|
12
|
+
*/
|
|
13
|
+
balDatepickerIsOpen(options?: Partial<Loggable>): Chainable<JQuery>;
|
|
14
|
+
/**
|
|
15
|
+
* Assert if the datepicker popover is closed.
|
|
16
|
+
*/
|
|
17
|
+
balDatepickerIsClosed(options?: Partial<Loggable>): Chainable<JQuery>;
|
|
18
|
+
/**
|
|
19
|
+
* Picks the date in the datepicker like a human.
|
|
20
|
+
*/
|
|
21
|
+
balDatepickerPick(date: Date, options?: Partial<Loggable>): Chainable<JQuery>;
|
|
22
|
+
/**
|
|
23
|
+
* Asserts if the given date is in range in the datepicker popover.
|
|
24
|
+
*/
|
|
25
|
+
balDatepickerIsDateInRange(date: Date, options?: Partial<Loggable>): Chainable<JQuery>;
|
|
26
|
+
/**
|
|
27
|
+
* Asserts if the given date is not in range in the datepicker popover.
|
|
28
|
+
*/
|
|
29
|
+
balDatepickerIsDateNotInRange(date: Date, options?: Partial<Loggable>): Chainable<JQuery>;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="cypress" />
|
|
2
|
+
/// <reference types="cypress" />
|
|
3
|
+
/// <reference types="cypress" />
|
|
4
|
+
declare namespace Cypress {
|
|
5
|
+
interface Chainable {
|
|
6
|
+
/**
|
|
7
|
+
* Returns the select options.
|
|
8
|
+
*/
|
|
9
|
+
balSelectFindOptions(options?: Partial<Loggable>): Chainable<JQuery>;
|
|
10
|
+
/**
|
|
11
|
+
* Returns the closable select chips (only with multiselect).
|
|
12
|
+
*/
|
|
13
|
+
balSelectFindChips(options?: Partial<Loggable>): Chainable<JQuery>;
|
|
14
|
+
/**
|
|
15
|
+
* Asserts that the select has the given options.
|
|
16
|
+
*/
|
|
17
|
+
balSelectShouldHaveOptions(labels: string[], dataType?: 'label' | 'value', options?: Partial<Loggable>): Chainable<JQuery>;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +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 visible snackbars.
|
|
8
|
+
*/
|
|
9
|
+
balSnackbarFind(options?: Partial<Loggable>): Chainable<JQuery>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|