@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
package/index.esm.js
CHANGED
|
@@ -1,804 +1,6 @@
|
|
|
1
|
-
export { b as byTestId, d as dataTestSelector, s as selectors } from './
|
|
1
|
+
export { b as byTestId, d as dataTestSelector, s as selectors } from './selectors.esm2.js';
|
|
2
2
|
export { balViewport } from './viewports.esm.js';
|
|
3
|
-
import { _ as _extends, i as isButton } from './helpers.esm.js';
|
|
4
3
|
export { t as testOnPlatforms } from './helpers.esm.js';
|
|
5
|
-
import 'cypress-file-upload';
|
|
6
4
|
import './bal-input-stepper.command.esm.js';
|
|
7
|
-
import './
|
|
5
|
+
import './add-override-commands.esm.js';
|
|
8
6
|
import '@baloise/ds-core';
|
|
9
|
-
|
|
10
|
-
/// <reference types="cypress" />
|
|
11
|
-
var hasPrintedDeprecation = false;
|
|
12
|
-
var createAccessor = function() {
|
|
13
|
-
for(var _len = arguments.length, mixins = new Array(_len), _key = 0; _key < _len; _key++){
|
|
14
|
-
mixins[_key] = arguments[_key];
|
|
15
|
-
}
|
|
16
|
-
return function(selector) {
|
|
17
|
-
return {
|
|
18
|
-
get: function get(element) {
|
|
19
|
-
if (element === void 0) element = cy.get(selector);
|
|
20
|
-
if (!hasPrintedDeprecation) {
|
|
21
|
-
console.warn("[DEPRECATED] - Mixins are no longer supported use cypress commands instead!");
|
|
22
|
-
hasPrintedDeprecation = true;
|
|
23
|
-
}
|
|
24
|
-
var creator = function() {
|
|
25
|
-
return createAccessor.apply(void 0, [].concat(mixins))(selector).get(element);
|
|
26
|
-
};
|
|
27
|
-
return mixins.reduce(function(acc, mixin) {
|
|
28
|
-
return _extends({}, acc, mixin({
|
|
29
|
-
selector: selector,
|
|
30
|
-
element: element,
|
|
31
|
-
creator: creator
|
|
32
|
-
}));
|
|
33
|
-
}, {});
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
var AndableMixin = function(param) {
|
|
40
|
-
var element = param.element, creator = param.creator;
|
|
41
|
-
return {
|
|
42
|
-
and: function and(chainers, method, value) {
|
|
43
|
-
switch(arguments.length){
|
|
44
|
-
case 2:
|
|
45
|
-
element.and(chainers, value);
|
|
46
|
-
break;
|
|
47
|
-
case 3:
|
|
48
|
-
element.and(chainers, method, value);
|
|
49
|
-
break;
|
|
50
|
-
default:
|
|
51
|
-
element.and(chainers);
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
return creator();
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
/// <reference types="cypress" />
|
|
60
|
-
var AttachableMixin = function(param) {
|
|
61
|
-
var element = param.element, creator = param.creator;
|
|
62
|
-
return {
|
|
63
|
-
attachFile: function(fileLocation, attachmentMethod) {
|
|
64
|
-
if (attachmentMethod === void 0) attachmentMethod = "drag-n-drop";
|
|
65
|
-
element.attachFile(fileLocation, {
|
|
66
|
-
subjectType: attachmentMethod ? "input" : "drag-n-drop",
|
|
67
|
-
force: true
|
|
68
|
-
});
|
|
69
|
-
return creator();
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
/// <reference types="cypress" />
|
|
75
|
-
var AttributableMixin = function(param) {
|
|
76
|
-
var element = param.element, creator = param.creator;
|
|
77
|
-
return {
|
|
78
|
-
assertAttributeEquals: function(attribute, value) {
|
|
79
|
-
element.should("have.attr", attribute).and("eq", value);
|
|
80
|
-
return creator();
|
|
81
|
-
},
|
|
82
|
-
assertAttributeInclude: function(attribute, value) {
|
|
83
|
-
element.should("have.attr", attribute).and("include", value);
|
|
84
|
-
return creator();
|
|
85
|
-
},
|
|
86
|
-
assertDoesNotHaveAttribute: function(attribute) {
|
|
87
|
-
element.should("not.have.attr", attribute);
|
|
88
|
-
return creator();
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
/// <reference types="cypress" />
|
|
94
|
-
var BlurableMixin = function(param) {
|
|
95
|
-
var element = param.element, creator = param.creator;
|
|
96
|
-
return {
|
|
97
|
-
blur: function(options) {
|
|
98
|
-
element.blur(options);
|
|
99
|
-
return creator();
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
/// <reference types="cypress" />
|
|
105
|
-
var CheckableMixin = function(param) {
|
|
106
|
-
var element = param.element, creator = param.creator;
|
|
107
|
-
return {
|
|
108
|
-
check: function(options) {
|
|
109
|
-
element.check(options);
|
|
110
|
-
return creator();
|
|
111
|
-
},
|
|
112
|
-
assertIsChecked: function(shouldBeChecked) {
|
|
113
|
-
if (shouldBeChecked === void 0) shouldBeChecked = true;
|
|
114
|
-
element.should(shouldBeChecked ? "be.checked" : "not.be.checked");
|
|
115
|
-
return creator();
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
/// <reference types="cypress" />
|
|
121
|
-
var ClearableMixin = function(param) {
|
|
122
|
-
var element = param.element, creator = param.creator;
|
|
123
|
-
return {
|
|
124
|
-
clear: function(options) {
|
|
125
|
-
element.clear(options);
|
|
126
|
-
return creator();
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
/// <reference types="cypress" />
|
|
132
|
-
var ClickableMixin = function(param) {
|
|
133
|
-
var element = param.element, creator = param.creator;
|
|
134
|
-
return {
|
|
135
|
-
click: function(options) {
|
|
136
|
-
element.click(options);
|
|
137
|
-
return creator();
|
|
138
|
-
},
|
|
139
|
-
clickNth: function(index, options) {
|
|
140
|
-
element.eq(index).click(options);
|
|
141
|
-
return creator();
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
/// <reference types="cypress" />
|
|
147
|
-
var ContainableMixin = function(param) {
|
|
148
|
-
var element = param.element, creator = param.creator;
|
|
149
|
-
return {
|
|
150
|
-
contains: function contains(content, shouldContain, options) {
|
|
151
|
-
if (shouldContain === void 0) shouldContain = true;
|
|
152
|
-
shouldContain ? element.contains(content, options) : element.should("not.contain", content);
|
|
153
|
-
return creator();
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
/// <reference types="cypress" />
|
|
159
|
-
var DisableableMixin = function(param) {
|
|
160
|
-
var element = param.element, creator = param.creator;
|
|
161
|
-
return {
|
|
162
|
-
assertIsDisabled: function(disabled) {
|
|
163
|
-
if (disabled === void 0) disabled = true;
|
|
164
|
-
element.should(disabled ? "be.disabled" : "not.be.disabled");
|
|
165
|
-
return creator();
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
/// <reference types="cypress" />
|
|
171
|
-
var EachableMixin = function(param) {
|
|
172
|
-
var element = param.element, creator = param.creator;
|
|
173
|
-
return {
|
|
174
|
-
each: function(callBack) {
|
|
175
|
-
element.each(function() {
|
|
176
|
-
return callBack();
|
|
177
|
-
});
|
|
178
|
-
return creator();
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
/// <reference types="cypress" />
|
|
184
|
-
var ExistableMixin = function(param) {
|
|
185
|
-
var element = param.element, creator = param.creator;
|
|
186
|
-
return {
|
|
187
|
-
assertExists: function(exists) {
|
|
188
|
-
if (exists === void 0) exists = true;
|
|
189
|
-
element.should(exists ? "exist" : "not.exist");
|
|
190
|
-
return creator();
|
|
191
|
-
}
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
/// <reference types="cypress" />
|
|
196
|
-
var FindableMixin = function(param) {
|
|
197
|
-
var element = param.element, creator = param.creator;
|
|
198
|
-
return {
|
|
199
|
-
find: function(locator) {
|
|
200
|
-
element.find(locator);
|
|
201
|
-
return creator();
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
/// <reference types="cypress" />
|
|
207
|
-
var InvokableMixin = function(param) {
|
|
208
|
-
var element = param.element;
|
|
209
|
-
return {
|
|
210
|
-
invoke: function(attribute) {
|
|
211
|
-
return element.invoke(attribute);
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
/// <reference types="cypress" />
|
|
217
|
-
var LengthableMixin = function(param) {
|
|
218
|
-
var element = param.element;
|
|
219
|
-
return {
|
|
220
|
-
length: function(locator) {
|
|
221
|
-
return element.then(function($body) {
|
|
222
|
-
return $body.find(locator).length;
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
/// <reference types="cypress" />
|
|
229
|
-
var NthSelectableMixin = function(param) {
|
|
230
|
-
var element = param.element, creator = param.creator;
|
|
231
|
-
return {
|
|
232
|
-
selectNth: function(index) {
|
|
233
|
-
element.eq(index);
|
|
234
|
-
return creator();
|
|
235
|
-
},
|
|
236
|
-
last: function() {
|
|
237
|
-
element.last();
|
|
238
|
-
return creator();
|
|
239
|
-
},
|
|
240
|
-
parent: function() {
|
|
241
|
-
element.parent();
|
|
242
|
-
return creator();
|
|
243
|
-
}
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
/// <reference types="cypress" />
|
|
248
|
-
var ShouldableMixin = function(param) {
|
|
249
|
-
var element = param.element, creator = param.creator;
|
|
250
|
-
return {
|
|
251
|
-
should: function should(chainers, attribute, content) {
|
|
252
|
-
switch(arguments.length){
|
|
253
|
-
case 2:
|
|
254
|
-
element.should(chainers, attribute);
|
|
255
|
-
break;
|
|
256
|
-
case 3:
|
|
257
|
-
element.should(chainers, attribute, content);
|
|
258
|
-
break;
|
|
259
|
-
default:
|
|
260
|
-
element.should(chainers);
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
return creator();
|
|
264
|
-
}
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
/// <reference types="cypress" />
|
|
269
|
-
var ThenableMixin = function(param) {
|
|
270
|
-
var element = param.element, creator = param.creator;
|
|
271
|
-
return {
|
|
272
|
-
then: function(callBack) {
|
|
273
|
-
element.then(function(param) {
|
|
274
|
-
return callBack(param);
|
|
275
|
-
});
|
|
276
|
-
return creator();
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
};
|
|
280
|
-
|
|
281
|
-
/// <reference types="cypress" />
|
|
282
|
-
var TypeableMixin = function(param) {
|
|
283
|
-
var element = param.element, creator = param.creator;
|
|
284
|
-
return {
|
|
285
|
-
type: function(text, options) {
|
|
286
|
-
element.type(text, options);
|
|
287
|
-
return creator();
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
};
|
|
291
|
-
|
|
292
|
-
/// <reference types="cypress" />
|
|
293
|
-
var UrlableMixin = function(param) {
|
|
294
|
-
var creator = param.creator;
|
|
295
|
-
return {
|
|
296
|
-
assertFullUrl: function(url) {
|
|
297
|
-
cy.url().should("eq", url);
|
|
298
|
-
return creator();
|
|
299
|
-
},
|
|
300
|
-
assertPartUrl: function(url) {
|
|
301
|
-
cy.url().should("contain", url);
|
|
302
|
-
return creator();
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
|
-
|
|
307
|
-
/// <reference types="cypress" />
|
|
308
|
-
var VisibleMixin = function(param) {
|
|
309
|
-
var element = param.element, creator = param.creator;
|
|
310
|
-
return {
|
|
311
|
-
assertVisible: function(visible) {
|
|
312
|
-
if (visible === void 0) visible = true;
|
|
313
|
-
element.should(visible ? "be.visible" : "not.be.visible");
|
|
314
|
-
return creator();
|
|
315
|
-
}
|
|
316
|
-
};
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
/// <reference types="cypress" />
|
|
320
|
-
var WaitableMixin = function(param) {
|
|
321
|
-
var element = param.element, creator = param.creator;
|
|
322
|
-
return {
|
|
323
|
-
wait: function(time) {
|
|
324
|
-
element.wait(time);
|
|
325
|
-
return creator();
|
|
326
|
-
}
|
|
327
|
-
};
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
/// <reference types="cypress" />
|
|
331
|
-
var AccordionTileClickableMixin = function(param) {
|
|
332
|
-
var element = param.element, creator = param.creator;
|
|
333
|
-
return {
|
|
334
|
-
clickBody: function(options) {
|
|
335
|
-
element.find(".show-body-link-container.bal-divider-top").click(options);
|
|
336
|
-
return creator();
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
};
|
|
340
|
-
var AccordionClickableMixin = function(param) {
|
|
341
|
-
var selector = param.selector, creator = param.creator;
|
|
342
|
-
return {
|
|
343
|
-
click: function(options) {
|
|
344
|
-
cy.get(selector).click(options);
|
|
345
|
-
return creator();
|
|
346
|
-
}
|
|
347
|
-
};
|
|
348
|
-
};
|
|
349
|
-
var AccordionContainableMixin = function(param) {
|
|
350
|
-
var selector = param.selector, creator = param.creator;
|
|
351
|
-
return {
|
|
352
|
-
contains: function(content) {
|
|
353
|
-
cy.get(selector).contains(content);
|
|
354
|
-
return creator();
|
|
355
|
-
}
|
|
356
|
-
};
|
|
357
|
-
};
|
|
358
|
-
var AccordionAssertableMixin = function(param) {
|
|
359
|
-
var selector = param.selector, creator = param.creator;
|
|
360
|
-
return {
|
|
361
|
-
assertBodyExists: function() {
|
|
362
|
-
cy.get(selector).balAccordionIsOpen();
|
|
363
|
-
return creator();
|
|
364
|
-
},
|
|
365
|
-
assertBodyNotExists: function() {
|
|
366
|
-
cy.get(selector).balAccordionIsClosed();
|
|
367
|
-
return creator();
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
|
-
};
|
|
371
|
-
var AccordionAccessor = createAccessor(AndableMixin, AccordionClickableMixin, AccordionAssertableMixin, AccordionContainableMixin, ExistableMixin, AccordionTileClickableMixin, BlurableMixin, VisibleMixin, ShouldableMixin, NthSelectableMixin, AttributableMixin, UrlableMixin, FindableMixin, WaitableMixin, InvokableMixin, LengthableMixin, ThenableMixin, EachableMixin);
|
|
372
|
-
|
|
373
|
-
/// <reference types="cypress" />
|
|
374
|
-
var ButtonAccessor = createAccessor(AndableMixin, ClickableMixin, ExistableMixin, BlurableMixin, ShouldableMixin, ContainableMixin, DisableableMixin, VisibleMixin, NthSelectableMixin, AttributableMixin, UrlableMixin, FindableMixin, WaitableMixin, InvokableMixin, ThenableMixin, LengthableMixin, EachableMixin, AttachableMixin);
|
|
375
|
-
|
|
376
|
-
/// <reference types="cypress" />
|
|
377
|
-
var CheckboxClickableMixin = function(param) {
|
|
378
|
-
var selector = param.selector, creator = param.creator;
|
|
379
|
-
return {
|
|
380
|
-
click: function(options) {
|
|
381
|
-
cy.get(selector).click(options);
|
|
382
|
-
return creator();
|
|
383
|
-
},
|
|
384
|
-
check: function(options) {
|
|
385
|
-
cy.get(selector).check(options);
|
|
386
|
-
return creator();
|
|
387
|
-
},
|
|
388
|
-
assertIsChecked: function(shouldBeChecked) {
|
|
389
|
-
if (shouldBeChecked === void 0) shouldBeChecked = true;
|
|
390
|
-
if (shouldBeChecked) {
|
|
391
|
-
cy.get(selector).should("be.checked");
|
|
392
|
-
} else {
|
|
393
|
-
cy.get(selector).should("not.be.checked");
|
|
394
|
-
}
|
|
395
|
-
return creator();
|
|
396
|
-
},
|
|
397
|
-
assertIsDisabled: function() {
|
|
398
|
-
cy.get(selector).should("be.disabled");
|
|
399
|
-
return creator();
|
|
400
|
-
},
|
|
401
|
-
assertIsEnabled: function() {
|
|
402
|
-
cy.get(selector).should("not.be.disabled");
|
|
403
|
-
return creator();
|
|
404
|
-
}
|
|
405
|
-
};
|
|
406
|
-
};
|
|
407
|
-
var CheckboxContainableMixin = function(param) {
|
|
408
|
-
var creator = param.creator, selector = param.selector;
|
|
409
|
-
return {
|
|
410
|
-
contains: function(content) {
|
|
411
|
-
cy.get(selector).contains(content);
|
|
412
|
-
return creator();
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
var CheckboxAccessor = createAccessor(AndableMixin, CheckboxClickableMixin, CheckboxContainableMixin, ExistableMixin, VisibleMixin, NthSelectableMixin, BlurableMixin, ShouldableMixin, AttributableMixin, UrlableMixin, WaitableMixin, FindableMixin, InvokableMixin, ThenableMixin, LengthableMixin, EachableMixin);
|
|
417
|
-
|
|
418
|
-
/// <reference types="cypress" />
|
|
419
|
-
var DropDownClickableMixin = function(param) {
|
|
420
|
-
var selector = param.selector, creator = param.creator;
|
|
421
|
-
return {
|
|
422
|
-
click: function(options) {
|
|
423
|
-
cy.get(selector).click(options);
|
|
424
|
-
return creator();
|
|
425
|
-
}
|
|
426
|
-
};
|
|
427
|
-
};
|
|
428
|
-
var DropDownSelectableMixin = function(param) {
|
|
429
|
-
var selector = param.selector, creator = param.creator;
|
|
430
|
-
return {
|
|
431
|
-
select: function(index) {
|
|
432
|
-
cy.get(selector).balSelectFindOptions().eq(index).click();
|
|
433
|
-
return creator();
|
|
434
|
-
},
|
|
435
|
-
assertIsSelected: function() {
|
|
436
|
-
throw new Error("Please use contains method");
|
|
437
|
-
}
|
|
438
|
-
};
|
|
439
|
-
};
|
|
440
|
-
function SiblingDropDownSelectableMixin() {
|
|
441
|
-
return function(param) {
|
|
442
|
-
var selector = param.selector, creator = param.creator;
|
|
443
|
-
return {
|
|
444
|
-
select: function(index) {
|
|
445
|
-
cy.get(selector).balSelectFindOptions().eq(index).click();
|
|
446
|
-
return creator();
|
|
447
|
-
},
|
|
448
|
-
assertIsSelected: function() {
|
|
449
|
-
throw new Error("Please use contains method");
|
|
450
|
-
}
|
|
451
|
-
};
|
|
452
|
-
};
|
|
453
|
-
}
|
|
454
|
-
var DropDownAssertableOptionsMixin = function(param) {
|
|
455
|
-
var selector = param.selector, creator = param.creator;
|
|
456
|
-
return {
|
|
457
|
-
assertOptions: function() {
|
|
458
|
-
for(var _len = arguments.length, options = new Array(_len), _key = 0; _key < _len; _key++){
|
|
459
|
-
options[_key] = arguments[_key];
|
|
460
|
-
}
|
|
461
|
-
cy.get(selector).balSelectShouldHaveOptions(options, "value");
|
|
462
|
-
return creator();
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
|
-
};
|
|
466
|
-
function SiblingDropDownAssertableOptionsMixin() {
|
|
467
|
-
return function(param) {
|
|
468
|
-
var selector = param.selector, creator = param.creator;
|
|
469
|
-
return {
|
|
470
|
-
assertOptions: function() {
|
|
471
|
-
for(var _len = arguments.length, options = new Array(_len), _key = 0; _key < _len; _key++){
|
|
472
|
-
options[_key] = arguments[_key];
|
|
473
|
-
}
|
|
474
|
-
cy.get(selector).balSelectShouldHaveOptions(options, "value");
|
|
475
|
-
return creator();
|
|
476
|
-
}
|
|
477
|
-
};
|
|
478
|
-
};
|
|
479
|
-
}
|
|
480
|
-
var DropDownContainableMixin = function(param) {
|
|
481
|
-
var selector = param.selector, creator = param.creator;
|
|
482
|
-
return {
|
|
483
|
-
contains: function(content) {
|
|
484
|
-
cy.get(selector).contains(content);
|
|
485
|
-
return creator();
|
|
486
|
-
}
|
|
487
|
-
};
|
|
488
|
-
};
|
|
489
|
-
function SiblingDropDownContainableMixin() {
|
|
490
|
-
return function(param) {
|
|
491
|
-
var selector = param.selector, creator = param.creator;
|
|
492
|
-
return {
|
|
493
|
-
contains: function(content) {
|
|
494
|
-
cy.get(selector).contains(content);
|
|
495
|
-
return creator();
|
|
496
|
-
}
|
|
497
|
-
};
|
|
498
|
-
};
|
|
499
|
-
}
|
|
500
|
-
var DropDownAccessor = createAccessor(AndableMixin, BlurableMixin, DropDownClickableMixin, DropDownSelectableMixin, DropDownContainableMixin, DropDownAssertableOptionsMixin, DisableableMixin, ShouldableMixin, VisibleMixin, NthSelectableMixin, AttributableMixin, UrlableMixin, FindableMixin, WaitableMixin, ExistableMixin, ThenableMixin, InvokableMixin, LengthableMixin, EachableMixin);
|
|
501
|
-
|
|
502
|
-
/// <reference types="cypress" />
|
|
503
|
-
/**
|
|
504
|
-
* TODO: adjust to the DS
|
|
505
|
-
*/ var ErrorAssertableMixin = function(param) {
|
|
506
|
-
var element = param.element, creator = param.creator;
|
|
507
|
-
return {
|
|
508
|
-
assertError: function(error) {
|
|
509
|
-
var message = element.get("cip-error");
|
|
510
|
-
message.should("contain", error);
|
|
511
|
-
return creator();
|
|
512
|
-
},
|
|
513
|
-
assertNoError: function() {
|
|
514
|
-
var noMessage = element.get("cip-error");
|
|
515
|
-
noMessage.should("be.empty");
|
|
516
|
-
return creator();
|
|
517
|
-
}
|
|
518
|
-
};
|
|
519
|
-
};
|
|
520
|
-
var ErrorAccessor = createAccessor(AndableMixin, ErrorAssertableMixin, ClickableMixin, ExistableMixin, ShouldableMixin, VisibleMixin, NthSelectableMixin, AttributableMixin, UrlableMixin, WaitableMixin, FindableMixin, InvokableMixin, ThenableMixin, LengthableMixin, EachableMixin);
|
|
521
|
-
|
|
522
|
-
/// <reference types="cypress" />
|
|
523
|
-
var LibIconAssertableMixin = function(param) {
|
|
524
|
-
var element = param.element, creator = param.creator;
|
|
525
|
-
return {
|
|
526
|
-
assertIcon: function(id) {
|
|
527
|
-
element.should("have.attr", "name", "" + id);
|
|
528
|
-
return creator();
|
|
529
|
-
}
|
|
530
|
-
};
|
|
531
|
-
};
|
|
532
|
-
var IconAccessor = createAccessor(AndableMixin, BlurableMixin, LibIconAssertableMixin, ExistableMixin, ContainableMixin, ClickableMixin, ShouldableMixin, VisibleMixin, NthSelectableMixin, AttributableMixin, UrlableMixin, FindableMixin, WaitableMixin, InvokableMixin, ThenableMixin, LengthableMixin, EachableMixin);
|
|
533
|
-
|
|
534
|
-
/// <reference types="cypress" />
|
|
535
|
-
var InputValueAssertableMixin = function(param) {
|
|
536
|
-
var element = param.element, creator = param.creator;
|
|
537
|
-
return {
|
|
538
|
-
assertValue: function(value) {
|
|
539
|
-
element.should("have.value", value);
|
|
540
|
-
return creator();
|
|
541
|
-
}
|
|
542
|
-
};
|
|
543
|
-
};
|
|
544
|
-
var InputAccessor = createAccessor(AndableMixin, ClickableMixin, TypeableMixin, BlurableMixin, ShouldableMixin, InputValueAssertableMixin, ClearableMixin, ContainableMixin, ErrorAssertableMixin, ExistableMixin, DisableableMixin, VisibleMixin, NthSelectableMixin, AttributableMixin, UrlableMixin, FindableMixin, WaitableMixin, InvokableMixin, ThenableMixin, LengthableMixin, EachableMixin, AttachableMixin);
|
|
545
|
-
|
|
546
|
-
/// <reference types="cypress" />
|
|
547
|
-
var Target;
|
|
548
|
-
(function(Target) {
|
|
549
|
-
Target["newTab"] = "_blank";
|
|
550
|
-
Target["sameTab"] = "_self";
|
|
551
|
-
Target["parent"] = "_parent";
|
|
552
|
-
Target["top"] = "_top";
|
|
553
|
-
})(Target || (Target = {}));
|
|
554
|
-
var getLink = function(element) {
|
|
555
|
-
return element.then(function(el) {
|
|
556
|
-
return isButton(el) ? element.find("a") : element;
|
|
557
|
-
});
|
|
558
|
-
};
|
|
559
|
-
var LinkClickableMixin = function(param) {
|
|
560
|
-
var element = param.element, creator = param.creator;
|
|
561
|
-
return {
|
|
562
|
-
clickLink: function() {
|
|
563
|
-
getLink(element).click();
|
|
564
|
-
return creator();
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
|
-
};
|
|
568
|
-
var LinkWithTargetAttribute = function(param) {
|
|
569
|
-
var element = param.element, creator = param.creator;
|
|
570
|
-
return {
|
|
571
|
-
assertLinkOpeningTarget: function(target) {
|
|
572
|
-
getLink(element).should("have.attr", "target", target);
|
|
573
|
-
return creator();
|
|
574
|
-
}
|
|
575
|
-
};
|
|
576
|
-
};
|
|
577
|
-
var LinkWithoutTargetAttribute = function(param) {
|
|
578
|
-
var element = param.element, creator = param.creator;
|
|
579
|
-
return {
|
|
580
|
-
assertLinkWithoutTarget: function() {
|
|
581
|
-
getLink(element).should("not.have.attr", "target");
|
|
582
|
-
return creator();
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
|
-
};
|
|
586
|
-
var LinkHrefContainsAssertableMixin = function(param) {
|
|
587
|
-
var element = param.element, creator = param.creator;
|
|
588
|
-
return {
|
|
589
|
-
assertHrefContains: function(href) {
|
|
590
|
-
getLink(element).should("have.attr", "href").and("contain", href);
|
|
591
|
-
return creator();
|
|
592
|
-
}
|
|
593
|
-
};
|
|
594
|
-
};
|
|
595
|
-
var LinkHrefEqualsAssertableMixin = function(param) {
|
|
596
|
-
var element = param.element, creator = param.creator;
|
|
597
|
-
return {
|
|
598
|
-
assertHrefEquals: function(href) {
|
|
599
|
-
getLink(element).should("have.attr", "href", href);
|
|
600
|
-
return creator();
|
|
601
|
-
}
|
|
602
|
-
};
|
|
603
|
-
};
|
|
604
|
-
var LinkAccessor = createAccessor(AndableMixin, BlurableMixin, ClickableMixin, LinkWithTargetAttribute, LinkWithoutTargetAttribute, LinkHrefContainsAssertableMixin, LinkHrefEqualsAssertableMixin, ExistableMixin, ShouldableMixin, ContainableMixin, DisableableMixin, VisibleMixin, NthSelectableMixin, LinkClickableMixin, AttributableMixin, UrlableMixin, FindableMixin, WaitableMixin, InvokableMixin, ThenableMixin, LengthableMixin, EachableMixin, AttachableMixin);
|
|
605
|
-
|
|
606
|
-
/// <reference types="cypress" />
|
|
607
|
-
var ListSelectableMixin = function(param) {
|
|
608
|
-
var element = param.element, creator = param.creator;
|
|
609
|
-
return {
|
|
610
|
-
select: function(index, options) {
|
|
611
|
-
element.balPaginationFindPages().eq(index).click(options);
|
|
612
|
-
return creator();
|
|
613
|
-
}
|
|
614
|
-
};
|
|
615
|
-
};
|
|
616
|
-
var ListAssertableMixin = function(param) {
|
|
617
|
-
var element = param.element, creator = param.creator;
|
|
618
|
-
return {
|
|
619
|
-
assertIsSelected: function(number) {
|
|
620
|
-
element.balPaginationFindCurrentPage().contains(number);
|
|
621
|
-
return creator();
|
|
622
|
-
}
|
|
623
|
-
};
|
|
624
|
-
};
|
|
625
|
-
var ListAccessor = createAccessor(AndableMixin, ListSelectableMixin, ListAssertableMixin, ContainableMixin, ExistableMixin, ClickableMixin, DisableableMixin, ShouldableMixin, VisibleMixin, NthSelectableMixin, AttributableMixin, UrlableMixin, WaitableMixin, FindableMixin, InvokableMixin, ThenableMixin, LengthableMixin, EachableMixin);
|
|
626
|
-
|
|
627
|
-
/// <reference types="cypress" />
|
|
628
|
-
var MultiSelectButtonSelectableMixin = function(param) {
|
|
629
|
-
var selector = param.selector, creator = param.creator;
|
|
630
|
-
return {
|
|
631
|
-
select: function(indexes) {
|
|
632
|
-
if (typeof indexes === "number") {
|
|
633
|
-
indexes = [
|
|
634
|
-
indexes
|
|
635
|
-
];
|
|
636
|
-
}
|
|
637
|
-
cy.get(selector).within(function() {
|
|
638
|
-
indexes.forEach(function(index) {
|
|
639
|
-
return cy.get("bal-checkbox").eq(index).check();
|
|
640
|
-
});
|
|
641
|
-
});
|
|
642
|
-
return creator();
|
|
643
|
-
},
|
|
644
|
-
assertIsSelected: function(indexes) {
|
|
645
|
-
if (typeof indexes === "number") {
|
|
646
|
-
indexes = [
|
|
647
|
-
indexes
|
|
648
|
-
];
|
|
649
|
-
}
|
|
650
|
-
cy.get(selector).within(function() {
|
|
651
|
-
indexes.forEach(function(index) {
|
|
652
|
-
return cy.get("bal-checkbox").eq(index).should("be.checked");
|
|
653
|
-
});
|
|
654
|
-
});
|
|
655
|
-
return creator();
|
|
656
|
-
}
|
|
657
|
-
};
|
|
658
|
-
};
|
|
659
|
-
var MultiSelectButtonAccessor = createAccessor(AndableMixin, BlurableMixin, MultiSelectButtonSelectableMixin, ContainableMixin, ClickableMixin, ExistableMixin, ShouldableMixin, VisibleMixin, DisableableMixin, NthSelectableMixin, AttributableMixin, UrlableMixin, WaitableMixin, FindableMixin, InvokableMixin, ThenableMixin, LengthableMixin, EachableMixin);
|
|
660
|
-
|
|
661
|
-
/// <reference types="cypress" />
|
|
662
|
-
var NavigationAccessor = createAccessor(AndableMixin, ListSelectableMixin, ExistableMixin, DisableableMixin, ClickableMixin, ContainableMixin, ShouldableMixin, VisibleMixin, NthSelectableMixin, AttributableMixin, UrlableMixin, FindableMixin, WaitableMixin, InvokableMixin, ThenableMixin, LengthableMixin, EachableMixin);
|
|
663
|
-
|
|
664
|
-
/// <reference types="cypress" />
|
|
665
|
-
var RadioAccessor = createAccessor(AndableMixin, BlurableMixin, CheckableMixin, ClickableMixin, ContainableMixin, ExistableMixin, DisableableMixin, ShouldableMixin, VisibleMixin, NthSelectableMixin, AttributableMixin, UrlableMixin, FindableMixin, WaitableMixin, InvokableMixin, ThenableMixin, LengthableMixin, EachableMixin);
|
|
666
|
-
|
|
667
|
-
/// <reference types="cypress" />
|
|
668
|
-
var SelectButtonSelectableMixin = function(param) {
|
|
669
|
-
var selector = param.selector, creator = param.creator;
|
|
670
|
-
return {
|
|
671
|
-
select: function(indexes) {
|
|
672
|
-
if (typeof indexes === "number") {
|
|
673
|
-
indexes = [
|
|
674
|
-
indexes
|
|
675
|
-
];
|
|
676
|
-
}
|
|
677
|
-
cy.get(selector).within(function() {
|
|
678
|
-
indexes.forEach(function(index) {
|
|
679
|
-
return cy.get("bal-radio").eq(index).check();
|
|
680
|
-
});
|
|
681
|
-
});
|
|
682
|
-
return creator();
|
|
683
|
-
},
|
|
684
|
-
assertIsSelected: function(indexes) {
|
|
685
|
-
if (typeof indexes === "number") {
|
|
686
|
-
indexes = [
|
|
687
|
-
indexes
|
|
688
|
-
];
|
|
689
|
-
}
|
|
690
|
-
cy.get(selector).within(function() {
|
|
691
|
-
indexes.forEach(function(index) {
|
|
692
|
-
return cy.get("bal-radio").eq(index).should("be.checked");
|
|
693
|
-
});
|
|
694
|
-
});
|
|
695
|
-
return creator();
|
|
696
|
-
}
|
|
697
|
-
};
|
|
698
|
-
};
|
|
699
|
-
var SelectButtonAccessor = createAccessor(AndableMixin, BlurableMixin, SelectButtonSelectableMixin, ContainableMixin, ClickableMixin, ExistableMixin, ShouldableMixin, VisibleMixin, DisableableMixin, NthSelectableMixin, AttributableMixin, UrlableMixin, WaitableMixin, FindableMixin, InvokableMixin, ThenableMixin, LengthableMixin, EachableMixin);
|
|
700
|
-
|
|
701
|
-
/// <reference types="cypress" />
|
|
702
|
-
var TableRowClickableMixin = function(param) {
|
|
703
|
-
var element = param.element, creator = param.creator;
|
|
704
|
-
return {
|
|
705
|
-
clickOnRow: function(index, options) {
|
|
706
|
-
var row = element.find("tr").eq(index);
|
|
707
|
-
row.click(options);
|
|
708
|
-
return creator();
|
|
709
|
-
}
|
|
710
|
-
};
|
|
711
|
-
};
|
|
712
|
-
var TableRowContainableMixin = function(param) {
|
|
713
|
-
var element = param.element, creator = param.creator;
|
|
714
|
-
return {
|
|
715
|
-
rowContains: function(index, content) {
|
|
716
|
-
var row = element.find("tr").eq(index);
|
|
717
|
-
row.contains(content);
|
|
718
|
-
return creator();
|
|
719
|
-
}
|
|
720
|
-
};
|
|
721
|
-
};
|
|
722
|
-
var TableAccessor = createAccessor(AndableMixin, TableRowClickableMixin, TableRowContainableMixin, ExistableMixin, ContainableMixin, ClickableMixin, ShouldableMixin, DisableableMixin, VisibleMixin, NthSelectableMixin, AttributableMixin, UrlableMixin, WaitableMixin, FindableMixin, EachableMixin, InvokableMixin, ThenableMixin, LengthableMixin, AttachableMixin);
|
|
723
|
-
|
|
724
|
-
/// <reference types="cypress" />
|
|
725
|
-
var TabsAssertVisibleMixin = function(param) {
|
|
726
|
-
var element = param.element, creator = param.creator;
|
|
727
|
-
return {
|
|
728
|
-
assertVisible: function(text) {
|
|
729
|
-
var field = element.find('[data-label="' + text + '"]');
|
|
730
|
-
field.should("be.visible");
|
|
731
|
-
return creator();
|
|
732
|
-
},
|
|
733
|
-
select: function(index, options) {
|
|
734
|
-
element.balTabsFindItems().eq(index).click(options);
|
|
735
|
-
return creator();
|
|
736
|
-
},
|
|
737
|
-
assertIsSelected: function(label) {
|
|
738
|
-
element.should("have.value", label);
|
|
739
|
-
return creator();
|
|
740
|
-
}
|
|
741
|
-
};
|
|
742
|
-
};
|
|
743
|
-
var TabsAccessor = createAccessor(AndableMixin, TabsAssertVisibleMixin, ClickableMixin, ContainableMixin, ExistableMixin, ShouldableMixin, DisableableMixin, NthSelectableMixin, AttributableMixin, UrlableMixin, WaitableMixin, FindableMixin, InvokableMixin, ThenableMixin, LengthableMixin, EachableMixin);
|
|
744
|
-
|
|
745
|
-
/// <reference types="cypress" />
|
|
746
|
-
var TextAccessor = createAccessor(AndableMixin, ContainableMixin, ShouldableMixin, BlurableMixin, ClickableMixin, ExistableMixin, DisableableMixin, VisibleMixin, NthSelectableMixin, AttributableMixin, UrlableMixin, FindableMixin, WaitableMixin, InvokableMixin, ThenableMixin, LengthableMixin, EachableMixin, AttachableMixin);
|
|
747
|
-
|
|
748
|
-
/// <reference types="cypress" />
|
|
749
|
-
var TileClickableMixin = function(param) {
|
|
750
|
-
var selector = param.selector, creator = param.creator;
|
|
751
|
-
return {
|
|
752
|
-
click: function(options) {
|
|
753
|
-
cy.get(selector).find("button").click(options);
|
|
754
|
-
return creator();
|
|
755
|
-
}
|
|
756
|
-
};
|
|
757
|
-
};
|
|
758
|
-
var TileContainableMixin = function(param) {
|
|
759
|
-
var element = param.element, creator = param.creator;
|
|
760
|
-
return {
|
|
761
|
-
containsTileContent: function(content) {
|
|
762
|
-
element.find("bal-card-title").contains(content);
|
|
763
|
-
return creator();
|
|
764
|
-
}
|
|
765
|
-
};
|
|
766
|
-
};
|
|
767
|
-
var TileAccessor = createAccessor(AndableMixin, TileClickableMixin, TileContainableMixin, ExistableMixin, DisableableMixin, ShouldableMixin, VisibleMixin, NthSelectableMixin, AttributableMixin, UrlableMixin, ContainableMixin, FindableMixin, WaitableMixin, InvokableMixin, ThenableMixin, LengthableMixin, EachableMixin, AttachableMixin);
|
|
768
|
-
|
|
769
|
-
var SuccessToastableMixin = function(param) {
|
|
770
|
-
var creator = param.creator;
|
|
771
|
-
return {
|
|
772
|
-
assertToast: function(content) {
|
|
773
|
-
cy.balToastFind().first().contains(content);
|
|
774
|
-
return creator();
|
|
775
|
-
}
|
|
776
|
-
};
|
|
777
|
-
};
|
|
778
|
-
var ToastAccessor = createAccessor(AndableMixin, BlurableMixin, SuccessToastableMixin, ContainableMixin, ClickableMixin, VisibleMixin, ExistableMixin, DisableableMixin, ShouldableMixin, NthSelectableMixin, AttributableMixin, UrlableMixin, WaitableMixin, FindableMixin, InvokableMixin, ThenableMixin, LengthableMixin, EachableMixin);
|
|
779
|
-
|
|
780
|
-
/// <reference types="cypress" />
|
|
781
|
-
var HoverMixin = function(param) {
|
|
782
|
-
var element = param.element, creator = param.creator;
|
|
783
|
-
return {
|
|
784
|
-
hover: function() {
|
|
785
|
-
element.click();
|
|
786
|
-
return creator();
|
|
787
|
-
}
|
|
788
|
-
};
|
|
789
|
-
};
|
|
790
|
-
var HoverContainableMixin = function(param) {
|
|
791
|
-
var creator = param.creator, selector = param.selector;
|
|
792
|
-
return {
|
|
793
|
-
contains: function(content) {
|
|
794
|
-
cy.get(selector).balHintFindOverlay().contains(content);
|
|
795
|
-
return creator();
|
|
796
|
-
}
|
|
797
|
-
};
|
|
798
|
-
};
|
|
799
|
-
var TooltipAccessor = createAccessor(AndableMixin, HoverMixin, HoverContainableMixin, VisibleMixin, BlurableMixin, ExistableMixin, ShouldableMixin, NthSelectableMixin, AttributableMixin, UrlableMixin, FindableMixin, WaitableMixin, InvokableMixin, ThenableMixin, LengthableMixin, EachableMixin);
|
|
800
|
-
|
|
801
|
-
/// <reference types="cypress" />
|
|
802
|
-
var TypeaheadAccessor = createAccessor(AndableMixin, ClickableMixin, TypeableMixin, BlurableMixin, ClearableMixin, ContainableMixin, InputValueAssertableMixin, ErrorAssertableMixin, ShouldableMixin, NthSelectableMixin, SiblingDropDownAssertableOptionsMixin(), SiblingDropDownContainableMixin(), SiblingDropDownSelectableMixin(), AttributableMixin, UrlableMixin, FindableMixin, WaitableMixin, InvokableMixin, ThenableMixin, LengthableMixin, EachableMixin);
|
|
803
|
-
|
|
804
|
-
export { AccordionAccessor, AccordionAssertableMixin, AccordionClickableMixin, AccordionContainableMixin, AccordionTileClickableMixin, AndableMixin, AttachableMixin, AttributableMixin, BlurableMixin, ButtonAccessor, CheckableMixin, CheckboxAccessor, CheckboxClickableMixin, CheckboxContainableMixin, ClearableMixin, ClickableMixin, ContainableMixin, DisableableMixin, DropDownAccessor, DropDownAssertableOptionsMixin, DropDownClickableMixin, DropDownContainableMixin, DropDownSelectableMixin, EachableMixin, ErrorAccessor, ErrorAssertableMixin, ExistableMixin, FindableMixin, HoverContainableMixin, HoverMixin, IconAccessor, InputAccessor, InputValueAssertableMixin, InvokableMixin, LengthableMixin, LibIconAssertableMixin, LinkAccessor, LinkClickableMixin, LinkHrefContainsAssertableMixin, LinkHrefEqualsAssertableMixin, LinkWithTargetAttribute, LinkWithoutTargetAttribute, ListAccessor, ListAssertableMixin, ListSelectableMixin, MultiSelectButtonAccessor, MultiSelectButtonSelectableMixin, NavigationAccessor, NthSelectableMixin, RadioAccessor, SelectButtonAccessor, SelectButtonSelectableMixin, ShouldableMixin, SiblingDropDownAssertableOptionsMixin, SiblingDropDownContainableMixin, SiblingDropDownSelectableMixin, SuccessToastableMixin, TableAccessor, TableRowClickableMixin, TableRowContainableMixin, TabsAccessor, TabsAssertVisibleMixin, Target, TextAccessor, ThenableMixin, TileAccessor, TileClickableMixin, TileContainableMixin, ToastAccessor, TooltipAccessor, TypeableMixin, TypeaheadAccessor, UrlableMixin, VisibleMixin, WaitableMixin, createAccessor };
|