@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.
- package/add-custom-commands.esm.js +1 -1
- package/add-override-commands.esm.js +541 -3
- package/bal-input-stepper.command.esm.js +165 -165
- package/helpers.esm.js +43 -42
- package/index.esm.js +2 -800
- package/package.json +3 -4
- package/selectors.esm.js +1 -1
- package/selectors.esm2.js +179 -0
- package/src/add-custom-commands.d.ts +34 -34
- package/src/add-override-commands.d.ts +9 -9
- package/src/commands/custom/bal-accordion.command.d.ts +1 -1
- package/src/commands/custom/bal-accordion.types.d.ts +15 -15
- package/src/commands/custom/bal-field.command.d.ts +1 -1
- package/src/commands/custom/bal-field.types.d.ts +11 -11
- package/src/commands/custom/bal-hint.command.d.ts +1 -1
- package/src/commands/custom/bal-hint.types.d.ts +15 -15
- package/src/commands/custom/bal-input-stepper.command.d.ts +1 -1
- package/src/commands/custom/bal-input-stepper.types.d.ts +15 -15
- package/src/commands/custom/bal-modal.command.d.ts +1 -1
- package/src/commands/custom/bal-modal.types.d.ts +24 -24
- package/src/commands/custom/bal-pagination.command.d.ts +1 -1
- package/src/commands/custom/bal-pagination.types.d.ts +23 -23
- package/src/commands/custom/bal-popover.command.d.ts +1 -1
- package/src/commands/custom/bal-popover.types.d.ts +27 -27
- package/src/commands/custom/bal-popup.command.d.ts +1 -1
- package/src/commands/custom/bal-popup.types.d.ts +15 -15
- package/src/commands/custom/bal-select.command.d.ts +1 -1
- package/src/commands/custom/bal-select.types.d.ts +19 -19
- package/src/commands/custom/bal-snackbar.command.d.ts +1 -1
- package/src/commands/custom/bal-snackbar.types.d.ts +11 -11
- package/src/commands/custom/bal-steps.command.d.ts +1 -1
- package/src/commands/custom/bal-steps.types.d.ts +27 -27
- package/src/commands/custom/bal-tabs.command.d.ts +1 -1
- package/src/commands/custom/bal-tabs.types.d.ts +31 -31
- package/src/commands/custom/bal-toast.command.d.ts +1 -1
- package/src/commands/custom/bal-toast.types.d.ts +11 -11
- package/src/commands/custom/component.command.d.ts +1 -1
- package/src/commands/custom/component.types.d.ts +47 -47
- package/src/commands/custom/get.command.d.ts +1 -1
- package/src/commands/custom/get.types.d.ts +43 -43
- package/src/commands/custom/platform.command.d.ts +1 -1
- package/src/commands/custom/platform.types.d.ts +11 -11
- package/src/commands/custom/visit.command.d.ts +1 -1
- package/src/commands/custom/visit.types.d.ts +10 -10
- package/src/commands/helpers.d.ts +48 -48
- package/src/commands/overrides/blur.command.d.ts +1 -1
- package/src/commands/overrides/check.command.d.ts +1 -1
- package/src/commands/overrides/clear.command.d.ts +1 -1
- package/src/commands/overrides/click.command.d.ts +1 -1
- package/src/commands/overrides/focus.command.d.ts +1 -1
- package/src/commands/overrides/select.command.d.ts +1 -1
- package/src/commands/overrides/should.command.d.ts +1 -1
- package/src/commands/overrides/type.command.d.ts +1 -1
- package/src/commands/overrides/uncheck.command.d.ts +1 -1
- package/src/index.d.ts +21 -25
- package/src/selectors/index.d.ts +354 -354
- package/src/selectors/selectors.util.d.ts +4 -4
- package/src/selectors.d.ts +1 -1
- package/src/viewports.d.ts +7 -7
- package/index.esm2.js +0 -317
- package/src/legacy/accessors/accordion.accessor.d.ts +0 -29
- package/src/legacy/accessors/button.accessor.d.ts +0 -23
- package/src/legacy/accessors/checkbox.accessor.d.ts +0 -25
- package/src/legacy/accessors/drop-down.accessor.d.ts +0 -31
- package/src/legacy/accessors/error.accessor.d.ts +0 -25
- package/src/legacy/accessors/icon-accessor.d.ts +0 -23
- package/src/legacy/accessors/input.accessor.d.ts +0 -30
- package/src/legacy/accessors/link.accessor.d.ts +0 -39
- package/src/legacy/accessors/list.accessor.d.ts +0 -23
- package/src/legacy/accessors/mixins/andable.d.ts +0 -5
- package/src/legacy/accessors/mixins/attachable.d.ts +0 -6
- package/src/legacy/accessors/mixins/attributable.d.ts +0 -7
- package/src/legacy/accessors/mixins/blurable.d.ts +0 -6
- package/src/legacy/accessors/mixins/checkable.d.ts +0 -7
- package/src/legacy/accessors/mixins/clearable.d.ts +0 -6
- package/src/legacy/accessors/mixins/clickable.d.ts +0 -7
- package/src/legacy/accessors/mixins/containable.d.ts +0 -5
- package/src/legacy/accessors/mixins/disableable.d.ts +0 -5
- package/src/legacy/accessors/mixins/eachable.d.ts +0 -5
- package/src/legacy/accessors/mixins/existable.d.ts +0 -5
- package/src/legacy/accessors/mixins/findable.d.ts +0 -5
- package/src/legacy/accessors/mixins/invokable.d.ts +0 -5
- package/src/legacy/accessors/mixins/lengthable.d.ts +0 -5
- package/src/legacy/accessors/mixins/mixins.d.ts +0 -12
- package/src/legacy/accessors/mixins/nthSelectable.d.ts +0 -7
- package/src/legacy/accessors/mixins/selectable.d.ts +0 -4
- package/src/legacy/accessors/mixins/shouldable.d.ts +0 -5
- package/src/legacy/accessors/mixins/thenable.d.ts +0 -5
- package/src/legacy/accessors/mixins/typeable.d.ts +0 -6
- package/src/legacy/accessors/mixins/urlable.d.ts +0 -6
- package/src/legacy/accessors/mixins/visible.d.ts +0 -5
- package/src/legacy/accessors/mixins/waitable.d.ts +0 -5
- package/src/legacy/accessors/multi-select-button.accessor.d.ts +0 -24
- package/src/legacy/accessors/navigation.accessor.d.ts +0 -22
- package/src/legacy/accessors/radio.accessor.d.ts +0 -23
- package/src/legacy/accessors/select-button.accessor.d.ts +0 -24
- package/src/legacy/accessors/table.accessor.d.ts +0 -27
- package/src/legacy/accessors/tabs.accessor.d.ts +0 -26
- package/src/legacy/accessors/text.accessor.d.ts +0 -23
- package/src/legacy/accessors/tile.accessor.d.ts +0 -27
- package/src/legacy/accessors/toast.accessor.d.ts +0 -24
- package/src/legacy/accessors/tooltip.accessor.d.ts +0 -23
- package/src/legacy/accessors/typeahead.accessor.d.ts +0 -26
- package/src/legacy/index.d.ts +0 -43
- package/type.command.esm.js +0 -541
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import { b as byTestId, s as selectors } from './
|
|
2
|
-
import { w as wrapOptions, l as log, c as checkAriaLabel, a as waitAfterFramePaint, b as waitAfterIdleCallback, d as areComponentsReady, e as deepReady,
|
|
1
|
+
import { b as byTestId, s as selectors } from './selectors.esm2.js';
|
|
2
|
+
import { w as wrapOptions, l as log, c as checkAriaLabel, a as waitAfterFramePaint, b as waitAfterIdleCallback, d as areComponentsReady, e as deepReady, i as isDropDown } from './helpers.esm.js';
|
|
3
3
|
import { waitAfterLargestContentfulPaintCallback, waitOnLoadEventCallback } from '@baloise/ds-core';
|
|
4
4
|
import { balViewport } from './viewports.esm.js';
|
|
5
5
|
|
|
6
|
-
Cypress.Commands.add(
|
|
6
|
+
Cypress.Commands.add('getByTestId', function(testID, options) {
|
|
7
7
|
var o = wrapOptions(options);
|
|
8
8
|
return cy.get(byTestId(testID), o).waitForComponents(o).then(o, function($el) {
|
|
9
|
-
return log(
|
|
9
|
+
return log('getByTestId', testID, $el, options);
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
|
-
Cypress.Commands.add(
|
|
12
|
+
Cypress.Commands.add('getDescribingElement', {
|
|
13
13
|
prevSubject: [
|
|
14
|
-
|
|
14
|
+
'element'
|
|
15
15
|
]
|
|
16
16
|
}, function(subject, options) {
|
|
17
17
|
var o = wrapOptions(options);
|
|
18
18
|
return cy.wrap(subject, o).then(function(subjectElement) {
|
|
19
|
-
var ariaDescribedBy = subjectElement.attr(
|
|
19
|
+
var ariaDescribedBy = subjectElement.attr('aria-describedby');
|
|
20
20
|
if (ariaDescribedBy) {
|
|
21
21
|
return cy.get('[id="' + ariaDescribedBy + '"]', o).then(o, function($el) {
|
|
22
|
-
return log(
|
|
22
|
+
return log('-getDescribingElement', ariaDescribedBy, $el, options);
|
|
23
23
|
});
|
|
24
24
|
} else {
|
|
25
25
|
throw new Error("The subject element does not have an aria-describedby attribute.");
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
Cypress.Commands.add(
|
|
29
|
+
Cypress.Commands.add('shouldBeInvalid', {
|
|
30
30
|
prevSubject: [
|
|
31
|
-
|
|
31
|
+
'element'
|
|
32
32
|
]
|
|
33
33
|
}, function(subject, options) {
|
|
34
34
|
var o = wrapOptions(options);
|
|
35
|
-
cy.wrap(subject, o).should(
|
|
35
|
+
cy.wrap(subject, o).should('have.attr', 'aria-invalid', 'true');
|
|
36
36
|
});
|
|
37
|
-
Cypress.Commands.add(
|
|
37
|
+
Cypress.Commands.add('shouldBeValid', {
|
|
38
38
|
prevSubject: [
|
|
39
|
-
|
|
39
|
+
'element'
|
|
40
40
|
]
|
|
41
41
|
}, function(subject, options) {
|
|
42
42
|
var o = wrapOptions(options);
|
|
43
|
-
cy.wrap(subject, o).should(
|
|
43
|
+
cy.wrap(subject, o).should('not.have.attr', 'aria-invalid', 'true');
|
|
44
44
|
});
|
|
45
|
-
Cypress.Commands.add(
|
|
45
|
+
Cypress.Commands.add('getByLabelText', {
|
|
46
46
|
prevSubject: [
|
|
47
|
-
|
|
47
|
+
'optional'
|
|
48
48
|
]
|
|
49
49
|
}, function(subject, labelText, options) {
|
|
50
50
|
var o = wrapOptions(options);
|
|
51
51
|
if (subject) {
|
|
52
|
-
return cy.wrap(subject, o).contains(
|
|
52
|
+
return cy.wrap(subject, o).contains('label', labelText, o).invoke(o, 'attr', 'for').then(function(forAttributeValue) {
|
|
53
53
|
return cy.get('input[id="' + forAttributeValue + '"], textarea[id="' + forAttributeValue + '"], button[id="' + forAttributeValue + '"]', o);
|
|
54
54
|
}).first(o).then(o, function($el) {
|
|
55
|
-
return log(!!subject ?
|
|
55
|
+
return log(!!subject ? '-getByLabelText' : 'getByLabelText', labelText, $el, options);
|
|
56
56
|
});
|
|
57
57
|
} else {
|
|
58
|
-
return cy.contains(
|
|
58
|
+
return cy.contains('label', labelText, o).invoke(o, 'attr', 'for').then(function(forAttributeValue) {
|
|
59
59
|
return cy.get('input[id="' + forAttributeValue + '"], textarea[id="' + forAttributeValue + '"], button[id="' + forAttributeValue + '"]', o);
|
|
60
60
|
}).first(o).then(o, function($el) {
|
|
61
|
-
return log(!!subject ?
|
|
61
|
+
return log(!!subject ? '-getByLabelText' : 'getByLabelText', labelText, $el, options);
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
|
-
Cypress.Commands.add(
|
|
65
|
+
Cypress.Commands.add('getByPlaceholder', {
|
|
66
66
|
prevSubject: [
|
|
67
|
-
|
|
67
|
+
'optional'
|
|
68
68
|
]
|
|
69
69
|
}, function(subject, placeholder, options) {
|
|
70
70
|
var o = wrapOptions(options);
|
|
71
71
|
var selector = 'input[placeholder="' + placeholder + '"], textarea[placeholder="' + placeholder + '"], [data-placeholder="' + placeholder + '"]';
|
|
72
72
|
var element = subject ? cy.wrap(subject, o).find(selector, o).first(o).waitForComponents(o) : cy.get(selector, o).first(o).waitForComponents(o);
|
|
73
73
|
element.then(o, function($el) {
|
|
74
|
-
return log(!!subject ?
|
|
74
|
+
return log(!!subject ? '-getByPlaceholder' : 'getByPlaceholder', placeholder, $el, options);
|
|
75
75
|
});
|
|
76
76
|
return element;
|
|
77
77
|
});
|
|
78
|
-
Cypress.Commands.add(
|
|
78
|
+
Cypress.Commands.add('getByRole', {
|
|
79
79
|
prevSubject: [
|
|
80
|
-
|
|
80
|
+
'optional'
|
|
81
81
|
]
|
|
82
82
|
}, function(subject, role, options) {
|
|
83
83
|
var findElements = function findElements() {
|
|
@@ -85,7 +85,7 @@ Cypress.Commands.add("getByRole", {
|
|
|
85
85
|
};
|
|
86
86
|
var filterVisibleElements = function filterVisibleElements(elements) {
|
|
87
87
|
return elements.filter(function(element) {
|
|
88
|
-
var isElementAriaHidden = options.hidden === true ? false : Cypress.$(element).attr(
|
|
88
|
+
var isElementAriaHidden = options.hidden === true ? false : Cypress.$(element).attr('aria-hidden') === 'true';
|
|
89
89
|
return !isElementAriaHidden;
|
|
90
90
|
});
|
|
91
91
|
};
|
|
@@ -101,32 +101,32 @@ Cypress.Commands.add("getByRole", {
|
|
|
101
101
|
var labeledElements = filterLabeling(visibleElements);
|
|
102
102
|
if (labeledElements.length > 0) {
|
|
103
103
|
return cy.wrap(labeledElements[0], o).waitForComponents(o).then(o, function($el) {
|
|
104
|
-
return log(!!subject ?
|
|
104
|
+
return log(!!subject ? '-getByRole' : 'getByRole', role + " " + JSON.stringify(options), $el, options);
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
return subject;
|
|
108
108
|
});
|
|
109
109
|
});
|
|
110
|
-
Cypress.Commands.add(
|
|
110
|
+
Cypress.Commands.add('getControl', {
|
|
111
111
|
prevSubject: [
|
|
112
|
-
|
|
112
|
+
'element'
|
|
113
113
|
]
|
|
114
114
|
}, function(subject, labelText, options) {
|
|
115
115
|
var o = wrapOptions(options);
|
|
116
|
-
var clearedLabelText = ("" + (labelText ||
|
|
117
|
-
return cy.wrap(subject, o).invoke(o,
|
|
116
|
+
var clearedLabelText = ("" + (labelText || '')).trim();
|
|
117
|
+
return cy.wrap(subject, o).invoke(o, 'attr', 'id').then(function(id) {
|
|
118
118
|
return cy.get('button[aria-controls="' + id + '"]', o);
|
|
119
119
|
}).filter(function(_index, element) {
|
|
120
120
|
return checkAriaLabel(element, clearedLabelText);
|
|
121
121
|
}, o).then(o, function($el) {
|
|
122
|
-
return log(
|
|
122
|
+
return log('-getControl', "" + labelText, $el, options);
|
|
123
123
|
});
|
|
124
124
|
});
|
|
125
125
|
|
|
126
|
-
Cypress.Commands.add(
|
|
127
|
-
prevSubject:
|
|
126
|
+
Cypress.Commands.add('waitForBrowser', {
|
|
127
|
+
prevSubject: 'optional'
|
|
128
128
|
}, function(subject, options) {
|
|
129
|
-
log(
|
|
129
|
+
log('waitForBrowser', '', subject, options);
|
|
130
130
|
var o = wrapOptions(options);
|
|
131
131
|
return cy.wrap(subject, o).then(function() {
|
|
132
132
|
return waitAfterFramePaint();
|
|
@@ -135,26 +135,26 @@ Cypress.Commands.add("waitForBrowser", {
|
|
|
135
135
|
}).wait(300, o) // animation timeout
|
|
136
136
|
.wrap(subject, o);
|
|
137
137
|
});
|
|
138
|
-
Cypress.Commands.add(
|
|
139
|
-
prevSubject:
|
|
138
|
+
Cypress.Commands.add('waitAfterIdleCallback', {
|
|
139
|
+
prevSubject: 'optional'
|
|
140
140
|
}, function(subject, options) {
|
|
141
|
-
log(
|
|
141
|
+
log('waitAfterIdleCallback', '', subject, options);
|
|
142
142
|
var o = wrapOptions(options);
|
|
143
143
|
return cy.wrap(subject, o).then(function() {
|
|
144
144
|
return waitAfterIdleCallback();
|
|
145
145
|
}).wrap(subject, o);
|
|
146
146
|
});
|
|
147
|
-
Cypress.Commands.add(
|
|
148
|
-
prevSubject:
|
|
147
|
+
Cypress.Commands.add('waitAfterFramePaint', {
|
|
148
|
+
prevSubject: 'optional'
|
|
149
149
|
}, function(subject, options) {
|
|
150
|
-
log(
|
|
150
|
+
log('waitAfterFramePaint', '', subject, options);
|
|
151
151
|
var o = wrapOptions(options);
|
|
152
152
|
return cy.wrap(subject, o).then(function() {
|
|
153
153
|
return waitAfterFramePaint();
|
|
154
154
|
}).wrap(subject, o);
|
|
155
155
|
});
|
|
156
|
-
Cypress.Commands.add(
|
|
157
|
-
prevSubject:
|
|
156
|
+
Cypress.Commands.add('waitForComponents', {
|
|
157
|
+
prevSubject: 'optional'
|
|
158
158
|
}, function(subject, options) {
|
|
159
159
|
cy.document({
|
|
160
160
|
log: false
|
|
@@ -163,7 +163,7 @@ Cypress.Commands.add("waitForComponents", {
|
|
|
163
163
|
});
|
|
164
164
|
var o = wrapOptions(options);
|
|
165
165
|
if (o.log) {
|
|
166
|
-
log(
|
|
166
|
+
log('waitForComponents', '', subject, options);
|
|
167
167
|
}
|
|
168
168
|
return cy.wrap(subject, o).then(function($el) {
|
|
169
169
|
return areComponentsReady($el);
|
|
@@ -173,28 +173,28 @@ Cypress.Commands.add("waitForComponents", {
|
|
|
173
173
|
return waitAfterIdleCallback(o.timeout);
|
|
174
174
|
}).wrap(subject, o);
|
|
175
175
|
});
|
|
176
|
-
Cypress.Commands.add(
|
|
176
|
+
Cypress.Commands.add('wrapComponent', {
|
|
177
177
|
prevSubject: false
|
|
178
178
|
}, function(element, options) {
|
|
179
|
-
log(
|
|
179
|
+
log('wrapComponent', '', element, options);
|
|
180
180
|
var o = wrapOptions(options);
|
|
181
181
|
return cy.wrap(element, o);
|
|
182
182
|
});
|
|
183
|
-
Cypress.Commands.add(
|
|
183
|
+
Cypress.Commands.add('getComponent', {
|
|
184
184
|
prevSubject: false
|
|
185
185
|
}, function(selector, options) {
|
|
186
|
-
log(
|
|
186
|
+
log('getComponent', selector, null, options);
|
|
187
187
|
var o = wrapOptions(options);
|
|
188
188
|
return cy.get(selector, o).waitForComponents(o);
|
|
189
189
|
});
|
|
190
|
-
Cypress.Commands.add(
|
|
190
|
+
Cypress.Commands.add('disableAnimation', function() {
|
|
191
191
|
cy.window({
|
|
192
192
|
log: false
|
|
193
193
|
}).then(function(win) {
|
|
194
194
|
win.BaloiseDesignSystem.config.animated = false;
|
|
195
195
|
});
|
|
196
196
|
});
|
|
197
|
-
Cypress.Commands.add(
|
|
197
|
+
Cypress.Commands.add('disableLogger', function() {
|
|
198
198
|
cy.window({
|
|
199
199
|
log: false
|
|
200
200
|
}).then(function(win) {
|
|
@@ -207,40 +207,40 @@ Cypress.Commands.add("disableLogger", function() {
|
|
|
207
207
|
};
|
|
208
208
|
});
|
|
209
209
|
});
|
|
210
|
-
Cypress.Commands.add(
|
|
210
|
+
Cypress.Commands.add('waitForDesignSystem', function() {
|
|
211
211
|
cy.document({
|
|
212
212
|
log: false
|
|
213
213
|
}).then(function(document) {
|
|
214
214
|
return document.fonts.ready;
|
|
215
215
|
});
|
|
216
|
-
cy.get(
|
|
216
|
+
cy.get('bal-app,.bal-app', {
|
|
217
217
|
log: false
|
|
218
218
|
}).first({
|
|
219
219
|
log: false
|
|
220
220
|
}).then(function($app) {
|
|
221
221
|
Cypress.log({
|
|
222
|
-
type:
|
|
222
|
+
type: 'parent',
|
|
223
223
|
$el: $app,
|
|
224
|
-
displayName:
|
|
225
|
-
message:
|
|
224
|
+
displayName: 'bal-app',
|
|
225
|
+
message: 'wait for DesignSystem to be ready'
|
|
226
226
|
});
|
|
227
227
|
}).waitForComponents({
|
|
228
228
|
log: false
|
|
229
229
|
}).invoke({
|
|
230
230
|
log: false
|
|
231
|
-
},
|
|
232
|
-
expect($el,
|
|
231
|
+
}, 'attr', 'ready').should(function($el) {
|
|
232
|
+
expect($el, 'if bal-app is ready').to.eq('');
|
|
233
233
|
}).disableAnimation().disableLogger();
|
|
234
|
-
cy.get(
|
|
234
|
+
cy.get('bal-app,.bal-app', {
|
|
235
235
|
log: false
|
|
236
236
|
}).first({
|
|
237
237
|
log: false
|
|
238
238
|
}).then(function($app) {
|
|
239
239
|
Cypress.log({
|
|
240
|
-
type:
|
|
240
|
+
type: 'parent',
|
|
241
241
|
$el: $app,
|
|
242
|
-
displayName:
|
|
243
|
-
message:
|
|
242
|
+
displayName: 'bal-app',
|
|
243
|
+
message: 'DesignSystem is ready 🚀'
|
|
244
244
|
});
|
|
245
245
|
}).then(function() {
|
|
246
246
|
return waitAfterLargestContentfulPaintCallback();
|
|
@@ -251,13 +251,13 @@ Cypress.Commands.add("waitForDesignSystem", function() {
|
|
|
251
251
|
});
|
|
252
252
|
});
|
|
253
253
|
|
|
254
|
-
Cypress.Commands.add(
|
|
254
|
+
Cypress.Commands.add('platform', function(platform) {
|
|
255
255
|
Cypress.log({
|
|
256
|
-
name:
|
|
257
|
-
displayName:
|
|
256
|
+
name: 'platform',
|
|
257
|
+
displayName: 'platform',
|
|
258
258
|
message: platform
|
|
259
259
|
});
|
|
260
|
-
var key = platform ||
|
|
260
|
+
var key = platform || 'desktop';
|
|
261
261
|
var viewport = balViewport[key];
|
|
262
262
|
return cy.viewport(viewport.width, viewport.height, {
|
|
263
263
|
log: false
|
|
@@ -270,9 +270,9 @@ Cypress.Commands.add("platform", function(platform) {
|
|
|
270
270
|
});
|
|
271
271
|
});
|
|
272
272
|
|
|
273
|
-
Cypress.Commands.add(
|
|
273
|
+
Cypress.Commands.add('visitBalApp', function(url, options) {
|
|
274
274
|
cy.visit(url, options);
|
|
275
|
-
cy.get(
|
|
275
|
+
cy.get('bal-app,bal-doc-app,.bal-app', {
|
|
276
276
|
log: false
|
|
277
277
|
}).first({
|
|
278
278
|
log: false
|
|
@@ -282,189 +282,189 @@ Cypress.Commands.add("visitBalApp", function(url, options) {
|
|
|
282
282
|
return resolve();
|
|
283
283
|
});
|
|
284
284
|
Cypress.log({
|
|
285
|
-
type:
|
|
285
|
+
type: 'parent',
|
|
286
286
|
$el: $app,
|
|
287
|
-
displayName:
|
|
288
|
-
message:
|
|
287
|
+
displayName: 'bal-app',
|
|
288
|
+
message: 'is ready 🚀'
|
|
289
289
|
});
|
|
290
290
|
});
|
|
291
291
|
});
|
|
292
292
|
});
|
|
293
293
|
|
|
294
|
-
Cypress.Commands.add(
|
|
294
|
+
Cypress.Commands.add('balAccordionIsOpen', {
|
|
295
295
|
prevSubject: true
|
|
296
296
|
}, function(subject, options) {
|
|
297
|
-
log(
|
|
297
|
+
log('balAccordionIsOpen', '', subject, options);
|
|
298
298
|
var o = wrapOptions(options);
|
|
299
|
-
return cy.wrapComponent(subject, o).should(
|
|
299
|
+
return cy.wrapComponent(subject, o).should('have.class', 'bal-accordion--active', 'true');
|
|
300
300
|
});
|
|
301
|
-
Cypress.Commands.add(
|
|
301
|
+
Cypress.Commands.add('balAccordionIsClosed', {
|
|
302
302
|
prevSubject: true
|
|
303
303
|
}, function(subject, options) {
|
|
304
|
-
log(
|
|
304
|
+
log('balAccordionIsClosed', '', subject, options);
|
|
305
305
|
var o = wrapOptions(options);
|
|
306
|
-
return cy.wrapComponent(subject, o).should(
|
|
306
|
+
return cy.wrapComponent(subject, o).should('not.have.class', 'bal-accordion--active');
|
|
307
307
|
});
|
|
308
308
|
|
|
309
|
-
Cypress.Commands.add(
|
|
309
|
+
Cypress.Commands.add('balPopoverToggle', {
|
|
310
310
|
prevSubject: true
|
|
311
311
|
}, function(subject, options) {
|
|
312
|
-
log(
|
|
312
|
+
log('balPopoverToggle', '', subject, options);
|
|
313
313
|
var o = wrapOptions(options);
|
|
314
314
|
return cy.wrapComponent(subject, o).find("[" + selectors.popover.trigger + "]", o).click(o).wrapComponent(subject, o);
|
|
315
315
|
});
|
|
316
|
-
Cypress.Commands.add(
|
|
316
|
+
Cypress.Commands.add('balPopoverIsOpen', {
|
|
317
317
|
prevSubject: true
|
|
318
318
|
}, function(subject, options) {
|
|
319
|
-
log(
|
|
319
|
+
log('balPopoverIsOpen', '', subject, options);
|
|
320
320
|
var o = wrapOptions(options);
|
|
321
|
-
return cy.wrapComponent(subject, o).should(
|
|
321
|
+
return cy.wrapComponent(subject, o).should('have.attr', 'aria-presented', 'true');
|
|
322
322
|
});
|
|
323
|
-
Cypress.Commands.add(
|
|
323
|
+
Cypress.Commands.add('balPopoverIsClosed', {
|
|
324
324
|
prevSubject: true
|
|
325
325
|
}, function(subject, options) {
|
|
326
|
-
log(
|
|
326
|
+
log('balPopoverIsClosed', '', subject, options);
|
|
327
327
|
var o = wrapOptions(options);
|
|
328
|
-
return cy.wrapComponent(subject, o).should(
|
|
328
|
+
return cy.wrapComponent(subject, o).should('not.have.attr', 'aria-presented');
|
|
329
329
|
});
|
|
330
|
-
Cypress.Commands.add(
|
|
330
|
+
Cypress.Commands.add('balPopoverTriggerContains', {
|
|
331
331
|
prevSubject: true
|
|
332
332
|
}, function(subject, content, options) {
|
|
333
|
-
log(
|
|
333
|
+
log('balPopoverTriggerContains', content, subject, options);
|
|
334
334
|
var o = wrapOptions(options);
|
|
335
335
|
return cy.wrapComponent(subject, o).find("[" + selectors.popover.trigger + "]", o).contains(content, options).wrapComponent(subject, o);
|
|
336
336
|
});
|
|
337
|
-
Cypress.Commands.add(
|
|
337
|
+
Cypress.Commands.add('balPopoverContentContains', {
|
|
338
338
|
prevSubject: true
|
|
339
339
|
}, function(subject, content, options) {
|
|
340
|
-
log(
|
|
340
|
+
log('balPopoverContentContains', content, subject, options);
|
|
341
341
|
var o = wrapOptions(options);
|
|
342
342
|
return cy.wrapComponent(subject, o).find(selectors.popover.content, o).contains(content, options).wrapComponent(subject, o);
|
|
343
343
|
});
|
|
344
344
|
|
|
345
|
-
Cypress.Commands.add(
|
|
345
|
+
Cypress.Commands.add('balPopupIsOpen', {
|
|
346
346
|
prevSubject: true
|
|
347
347
|
}, function(subject, options) {
|
|
348
|
-
log(
|
|
348
|
+
log('balPopupIsOpen', '', subject, options);
|
|
349
349
|
var o = wrapOptions(options);
|
|
350
|
-
return cy.wrapComponent(subject, o).should(
|
|
350
|
+
return cy.wrapComponent(subject, o).should('have.attr', 'aria-presented', 'true');
|
|
351
351
|
});
|
|
352
|
-
Cypress.Commands.add(
|
|
352
|
+
Cypress.Commands.add('balPopupIsClosed', {
|
|
353
353
|
prevSubject: true
|
|
354
354
|
}, function(subject, options) {
|
|
355
|
-
log(
|
|
355
|
+
log('balPopupIsClosed', '', subject, options);
|
|
356
356
|
var o = wrapOptions(options);
|
|
357
|
-
return cy.wrapComponent(subject, o).should(
|
|
357
|
+
return cy.wrapComponent(subject, o).should('not.have.attr', 'aria-presented');
|
|
358
358
|
});
|
|
359
359
|
|
|
360
|
-
Cypress.Commands.add(
|
|
360
|
+
Cypress.Commands.add('balHintFindOverlay', {
|
|
361
361
|
prevSubject: true
|
|
362
362
|
}, function(subject, options) {
|
|
363
363
|
var o = wrapOptions(options);
|
|
364
364
|
return cy.wrapComponent(subject, o).find(selectors.hint.content, o).then(function($el) {
|
|
365
|
-
log(
|
|
365
|
+
log('balHintFindOverlay', '', $el, options);
|
|
366
366
|
return $el;
|
|
367
367
|
}).waitForComponents(o);
|
|
368
368
|
});
|
|
369
|
-
Cypress.Commands.add(
|
|
369
|
+
Cypress.Commands.add('balHintFindCloseButton', {
|
|
370
370
|
prevSubject: true
|
|
371
371
|
}, function(subject, options) {
|
|
372
372
|
var o = wrapOptions(options);
|
|
373
373
|
return cy.wrapComponent(subject, o).find(selectors.hint.close, o).then(function($el) {
|
|
374
|
-
log(
|
|
374
|
+
log('balHintFindCloseButton', '', $el, options);
|
|
375
375
|
return $el;
|
|
376
376
|
}).waitForComponents(o);
|
|
377
377
|
});
|
|
378
378
|
|
|
379
|
-
Cypress.Commands.add(
|
|
379
|
+
Cypress.Commands.add('balModalFindOpen', {
|
|
380
380
|
prevSubject: false
|
|
381
381
|
}, function(options) {
|
|
382
382
|
var o = wrapOptions(options);
|
|
383
383
|
return cy.getComponent('bal-modal[aria-presented="true"]', o).then(function($el) {
|
|
384
|
-
log(
|
|
384
|
+
log('balModalFindOpen', '', $el, options);
|
|
385
385
|
return $el;
|
|
386
386
|
}).waitForComponents();
|
|
387
387
|
});
|
|
388
|
-
Cypress.Commands.add(
|
|
388
|
+
Cypress.Commands.add('balModalIsOpen', {
|
|
389
389
|
prevSubject: true
|
|
390
390
|
}, function(subject, options) {
|
|
391
|
-
log(
|
|
391
|
+
log('balAccordionIsOpen', '', subject, options);
|
|
392
392
|
var o = wrapOptions(options);
|
|
393
|
-
return cy.wrapComponent(subject, o).should(
|
|
393
|
+
return cy.wrapComponent(subject, o).should('have.attr', 'aria-presented', 'true');
|
|
394
394
|
});
|
|
395
|
-
Cypress.Commands.add(
|
|
395
|
+
Cypress.Commands.add('balModalIsClosed', {
|
|
396
396
|
prevSubject: true
|
|
397
397
|
}, function(subject, options) {
|
|
398
|
-
log(
|
|
398
|
+
log('balModalIsClosed', '', subject, options);
|
|
399
399
|
var o = wrapOptions(options);
|
|
400
|
-
return cy.wrapComponent(subject, o).should(
|
|
400
|
+
return cy.wrapComponent(subject, o).should('not.have.attr', 'aria-presented');
|
|
401
401
|
});
|
|
402
|
-
Cypress.Commands.add(
|
|
402
|
+
Cypress.Commands.add('balModalClose', {
|
|
403
403
|
prevSubject: true
|
|
404
404
|
}, function(subject, options) {
|
|
405
|
-
log(
|
|
405
|
+
log('balModalIsClosed', '', subject, options);
|
|
406
406
|
var o = wrapOptions(options);
|
|
407
407
|
return cy.wrapComponent(subject, o).then(function($modal) {
|
|
408
|
-
return cy.wrapComponent($modal, o).find(
|
|
408
|
+
return cy.wrapComponent($modal, o).find('.data-test-modal-close', o).waitForComponents().click();
|
|
409
409
|
});
|
|
410
410
|
});
|
|
411
411
|
|
|
412
|
-
Cypress.Commands.add(
|
|
412
|
+
Cypress.Commands.add('balPaginationFindPages', {
|
|
413
413
|
prevSubject: true
|
|
414
414
|
}, function(subject, options) {
|
|
415
415
|
var o = wrapOptions(options);
|
|
416
|
-
return cy.wrapComponent(subject, o).find(selectors.pagination.pages +
|
|
417
|
-
log(
|
|
416
|
+
return cy.wrapComponent(subject, o).find(selectors.pagination.pages + ':visible', o).then(function($el) {
|
|
417
|
+
log('balPaginationFindPages', '', $el, options);
|
|
418
418
|
return $el;
|
|
419
419
|
}).waitForComponents(o);
|
|
420
420
|
});
|
|
421
|
-
Cypress.Commands.add(
|
|
421
|
+
Cypress.Commands.add('balPaginationFindCurrentPage', {
|
|
422
422
|
prevSubject: true
|
|
423
423
|
}, function(subject, options) {
|
|
424
424
|
var o = wrapOptions(options);
|
|
425
425
|
return cy.wrapComponent(subject, o).find("" + selectors.pagination.button + ".is-primary:visible", o).then(function($el) {
|
|
426
|
-
log(
|
|
426
|
+
log('balPaginationFindCurrentPage', '', $el, options);
|
|
427
427
|
return $el;
|
|
428
428
|
}).waitForComponents(o);
|
|
429
429
|
});
|
|
430
|
-
Cypress.Commands.add(
|
|
430
|
+
Cypress.Commands.add('balPaginationFindNextButton', {
|
|
431
431
|
prevSubject: true
|
|
432
432
|
}, function(subject, options) {
|
|
433
433
|
var o = wrapOptions(options);
|
|
434
434
|
return cy.wrapComponent(subject, o).find(selectors.pagination.next, o).then(function($el) {
|
|
435
|
-
log(
|
|
435
|
+
log('balPaginationFindNextButton', '', $el, options);
|
|
436
436
|
return $el;
|
|
437
437
|
}).waitForComponents(o);
|
|
438
438
|
});
|
|
439
|
-
Cypress.Commands.add(
|
|
439
|
+
Cypress.Commands.add('balPaginationFindPreviousButton', {
|
|
440
440
|
prevSubject: true
|
|
441
441
|
}, function(subject, options) {
|
|
442
442
|
var o = wrapOptions(options);
|
|
443
443
|
return cy.wrapComponent(subject, o).find(selectors.pagination.previous, o).then(function($el) {
|
|
444
|
-
log(
|
|
444
|
+
log('balPaginationFindPreviousButton', '', $el, options);
|
|
445
445
|
return $el;
|
|
446
446
|
}).waitForComponents(o);
|
|
447
447
|
});
|
|
448
448
|
|
|
449
|
-
Cypress.Commands.add(
|
|
449
|
+
Cypress.Commands.add('balSelectFindOptions', {
|
|
450
450
|
prevSubject: true
|
|
451
451
|
}, function(subject, options) {
|
|
452
452
|
var o = wrapOptions(options);
|
|
453
453
|
if (isDropDown(subject)) {
|
|
454
454
|
return cy.wrapComponent(subject, o).find(selectors.dropdown.options, o).then(function($el) {
|
|
455
|
-
return log(
|
|
455
|
+
return log('balSelectFindOptions', '', $el, options);
|
|
456
456
|
}).waitForComponents(o);
|
|
457
457
|
} else {
|
|
458
458
|
return cy.wrapComponent(subject, o).find(selectors.select.options, o).then(function($el) {
|
|
459
|
-
return log(
|
|
459
|
+
return log('balSelectFindOptions', '', $el, options);
|
|
460
460
|
}).waitForComponents(o);
|
|
461
461
|
}
|
|
462
462
|
});
|
|
463
|
-
Cypress.Commands.add(
|
|
463
|
+
Cypress.Commands.add('balSelectShouldHaveOptions', {
|
|
464
464
|
prevSubject: true
|
|
465
465
|
}, function(subject, labels, dataKey, options) {
|
|
466
|
-
if (dataKey ===
|
|
467
|
-
log(
|
|
466
|
+
if (dataKey === undefined) dataKey = 'label';
|
|
467
|
+
log('balSelectShouldHaveOptions', '', subject, options);
|
|
468
468
|
var o = wrapOptions(options);
|
|
469
469
|
return cy.wrapComponent(subject, o).balSelectFindOptions(o).should(function($o) {
|
|
470
470
|
var dataItems = $o.map(function(_, el) {
|
|
@@ -473,48 +473,48 @@ Cypress.Commands.add("balSelectShouldHaveOptions", {
|
|
|
473
473
|
expect(dataItems.get()).to.deep.eq(labels);
|
|
474
474
|
});
|
|
475
475
|
});
|
|
476
|
-
Cypress.Commands.add(
|
|
476
|
+
Cypress.Commands.add('balSelectFindChips', {
|
|
477
477
|
prevSubject: true
|
|
478
478
|
}, function(subject, options) {
|
|
479
479
|
var o = wrapOptions(options);
|
|
480
480
|
var selector = isDropDown(subject) ? selectors.dropdown.chips : selectors.select.chips;
|
|
481
481
|
return cy.wrapComponent(subject, o).find(selector, o).then(function($el) {
|
|
482
|
-
return log(
|
|
482
|
+
return log('balSelectFindChips', '', $el, options);
|
|
483
483
|
}).waitForComponents(o);
|
|
484
484
|
});
|
|
485
485
|
|
|
486
|
-
Cypress.Commands.add(
|
|
486
|
+
Cypress.Commands.add('balSnackbarFind', {
|
|
487
487
|
prevSubject: false
|
|
488
488
|
}, function(options) {
|
|
489
489
|
var o = wrapOptions(options);
|
|
490
490
|
return cy.getComponent(selectors.snackbar.main, o).then(function($el) {
|
|
491
|
-
log(
|
|
491
|
+
log('balSnackbarFind', '', $el, options);
|
|
492
492
|
return $el;
|
|
493
493
|
}).waitForComponents(o);
|
|
494
494
|
});
|
|
495
495
|
|
|
496
|
-
Cypress.Commands.add(
|
|
496
|
+
Cypress.Commands.add('balStepsFindItems', {
|
|
497
497
|
prevSubject: true
|
|
498
498
|
}, function(subject, options) {
|
|
499
499
|
var o = wrapOptions(options);
|
|
500
500
|
return cy.wrapComponent(subject, o).find(selectors.steps.option, o).then(function($el) {
|
|
501
|
-
log(
|
|
501
|
+
log('balStepsFindItems', '', $el, options);
|
|
502
502
|
return $el;
|
|
503
503
|
}).waitForComponents(o);
|
|
504
504
|
});
|
|
505
|
-
Cypress.Commands.add(
|
|
505
|
+
Cypress.Commands.add('balStepsFindLabel', {
|
|
506
506
|
prevSubject: true
|
|
507
507
|
}, function(subject, options) {
|
|
508
508
|
var o = wrapOptions(options);
|
|
509
509
|
return cy.wrapComponent(subject, o).find(selectors.steps.optionLabel, o).then(function($el) {
|
|
510
|
-
log(
|
|
510
|
+
log('balStepsFindLabel', '', $el, options);
|
|
511
511
|
return $el;
|
|
512
512
|
});
|
|
513
513
|
});
|
|
514
|
-
Cypress.Commands.add(
|
|
514
|
+
Cypress.Commands.add('balStepsShouldHaveItems', {
|
|
515
515
|
prevSubject: true
|
|
516
516
|
}, function(subject, labels, dataKey, options) {
|
|
517
|
-
if (dataKey ===
|
|
517
|
+
if (dataKey === undefined) dataKey = 'label';
|
|
518
518
|
var o = wrapOptions(options);
|
|
519
519
|
return cy.wrapComponent(subject, o).balStepsFindItems(o).should(function($o) {
|
|
520
520
|
var dataItems = $o.map(function(_, el) {
|
|
@@ -523,45 +523,45 @@ Cypress.Commands.add("balStepsShouldHaveItems", {
|
|
|
523
523
|
expect(dataItems.get()).to.deep.eq(labels);
|
|
524
524
|
});
|
|
525
525
|
});
|
|
526
|
-
Cypress.Commands.add(
|
|
526
|
+
Cypress.Commands.add('balStepsItemShouldHaveState', {
|
|
527
527
|
prevSubject: true
|
|
528
528
|
}, function(subject, state, options) {
|
|
529
|
-
if (state ===
|
|
530
|
-
log(
|
|
529
|
+
if (state === undefined) state = 'done';
|
|
530
|
+
log('balStepsItemShouldHaveState', '', subject, options);
|
|
531
531
|
var o = wrapOptions(options);
|
|
532
|
-
return cy.wrapComponent(subject, o).should(
|
|
532
|
+
return cy.wrapComponent(subject, o).should('have.class', "bal-steps__nav__item--" + state);
|
|
533
533
|
});
|
|
534
|
-
Cypress.Commands.add(
|
|
534
|
+
Cypress.Commands.add('balStepsItemShouldNotHaveState', {
|
|
535
535
|
prevSubject: true
|
|
536
536
|
}, function(subject, state, options) {
|
|
537
|
-
if (state ===
|
|
538
|
-
log(
|
|
537
|
+
if (state === undefined) state = 'done';
|
|
538
|
+
log('balStepsItemShouldNotHaveState', '', subject, options);
|
|
539
539
|
var o = wrapOptions(options);
|
|
540
|
-
return cy.wrapComponent(subject, o).should(
|
|
540
|
+
return cy.wrapComponent(subject, o).should('not.have.class', "bal-steps__nav__item--" + state);
|
|
541
541
|
});
|
|
542
542
|
|
|
543
|
-
Cypress.Commands.add(
|
|
543
|
+
Cypress.Commands.add('balTabsFindItems', {
|
|
544
544
|
prevSubject: true
|
|
545
545
|
}, function(subject, options) {
|
|
546
546
|
var o = wrapOptions(options);
|
|
547
547
|
return cy.wrapComponent(subject, o).find(selectors.tabs.item, o).then(function($el) {
|
|
548
|
-
log(
|
|
548
|
+
log('balTabsFindItems', '', $el, options);
|
|
549
549
|
return $el;
|
|
550
550
|
}).waitForComponents(o);
|
|
551
551
|
});
|
|
552
|
-
Cypress.Commands.add(
|
|
552
|
+
Cypress.Commands.add('balTabsFindLabel', {
|
|
553
553
|
prevSubject: true
|
|
554
554
|
}, function(subject, options) {
|
|
555
555
|
var o = wrapOptions(options);
|
|
556
556
|
return cy.wrapComponent(subject, o).find(selectors.tabs.itemLabel, o).then(function($el) {
|
|
557
|
-
log(
|
|
557
|
+
log('balTabsFindLabel', '', $el, options);
|
|
558
558
|
return $el;
|
|
559
559
|
});
|
|
560
560
|
});
|
|
561
|
-
Cypress.Commands.add(
|
|
561
|
+
Cypress.Commands.add('balTabsShouldHaveItems', {
|
|
562
562
|
prevSubject: true
|
|
563
563
|
}, function(subject, labels, dataKey, options) {
|
|
564
|
-
if (dataKey ===
|
|
564
|
+
if (dataKey === undefined) dataKey = 'label';
|
|
565
565
|
var o = wrapOptions(options);
|
|
566
566
|
return cy.wrapComponent(subject, o).balTabsFindItems(o).should(function($o) {
|
|
567
567
|
var dataItems = $o.map(function(_, el) {
|
|
@@ -570,57 +570,57 @@ Cypress.Commands.add("balTabsShouldHaveItems", {
|
|
|
570
570
|
expect(dataItems.get()).to.deep.eq(labels);
|
|
571
571
|
});
|
|
572
572
|
});
|
|
573
|
-
Cypress.Commands.add(
|
|
573
|
+
Cypress.Commands.add('balTabItemShouldHaveState', {
|
|
574
574
|
prevSubject: true
|
|
575
575
|
}, function(subject, state, options) {
|
|
576
|
-
if (state ===
|
|
577
|
-
log(
|
|
576
|
+
if (state === undefined) state = 'done';
|
|
577
|
+
log('balTabItemShouldHaveState', '', subject, options);
|
|
578
578
|
var o = wrapOptions(options);
|
|
579
|
-
return cy.wrapComponent(subject, o).should(
|
|
579
|
+
return cy.wrapComponent(subject, o).should('have.class', "bal-tabs__steps__item--" + state);
|
|
580
580
|
});
|
|
581
|
-
Cypress.Commands.add(
|
|
581
|
+
Cypress.Commands.add('balTabItemShouldBeActive', {
|
|
582
582
|
prevSubject: true
|
|
583
583
|
}, function(subject, active, options) {
|
|
584
|
-
if (active ===
|
|
585
|
-
log(
|
|
584
|
+
if (active === undefined) active = true;
|
|
585
|
+
log('balTabItemShouldBeActive', '', subject, options);
|
|
586
586
|
var o = wrapOptions(options);
|
|
587
587
|
if (active) {
|
|
588
|
-
return cy.wrapComponent(subject, o).should(
|
|
588
|
+
return cy.wrapComponent(subject, o).should('have.class', "bal-tabs__steps__item--active");
|
|
589
589
|
}
|
|
590
|
-
return cy.wrapComponent(subject, o).should(
|
|
590
|
+
return cy.wrapComponent(subject, o).should('not.have.class', "bal-tabs__steps__item--active");
|
|
591
591
|
});
|
|
592
592
|
|
|
593
|
-
Cypress.Commands.add(
|
|
593
|
+
Cypress.Commands.add('balToastFind', {
|
|
594
594
|
prevSubject: false
|
|
595
595
|
}, function(options) {
|
|
596
596
|
var o = wrapOptions(options);
|
|
597
597
|
return cy.getComponent(selectors.toast.main, o).then(function($el) {
|
|
598
|
-
log(
|
|
598
|
+
log('balToastFind', '', $el, options);
|
|
599
599
|
return $el;
|
|
600
600
|
}).waitForComponents(o);
|
|
601
601
|
});
|
|
602
602
|
|
|
603
|
-
Cypress.Commands.add(
|
|
603
|
+
Cypress.Commands.add('balFieldFindHint', {
|
|
604
604
|
prevSubject: true
|
|
605
605
|
}, function(subject, options) {
|
|
606
606
|
var o = wrapOptions(options);
|
|
607
607
|
return cy.wrapComponent(subject, o).find(selectors.field.hint, o).then(function($el) {
|
|
608
|
-
log(
|
|
608
|
+
log('balFieldFindHint', '', $el, options);
|
|
609
609
|
return $el;
|
|
610
610
|
}).waitForComponents();
|
|
611
611
|
});
|
|
612
612
|
|
|
613
|
-
Cypress.Commands.add(
|
|
613
|
+
Cypress.Commands.add('balInputStepperIncrease', {
|
|
614
614
|
prevSubject: true
|
|
615
615
|
}, function(subject, options) {
|
|
616
|
-
log(
|
|
616
|
+
log('balInputStepperIncrease', '', subject, options);
|
|
617
617
|
var o = wrapOptions(options);
|
|
618
618
|
return cy.wrapComponent(subject, o).find('[data-testid="bal-input-stepper-increase"]', o).click(o).wrapComponent(subject, o);
|
|
619
619
|
});
|
|
620
|
-
Cypress.Commands.add(
|
|
620
|
+
Cypress.Commands.add('balInputStepperDecrease', {
|
|
621
621
|
prevSubject: true
|
|
622
622
|
}, function(subject, options) {
|
|
623
|
-
log(
|
|
623
|
+
log('balInputStepperDecrease', '', subject, options);
|
|
624
624
|
var o = wrapOptions(options);
|
|
625
625
|
return cy.wrapComponent(subject, o).find('[data-testid="bal-input-stepper-decrease"]', o).click(o).wrapComponent(subject, o);
|
|
626
626
|
});
|