@fkui/vue 6.1.0 → 6.3.0

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.
@@ -0,0 +1,1516 @@
1
+ // src/cypress/FCalenderDay.pageobject.ts
2
+ var dayType = /* @__PURE__ */ ((dayType2) => {
3
+ dayType2["day"] = "calendar-day";
4
+ dayType2["highlight"] = "calendar-day--highlight";
5
+ dayType2["selected"] = "calendar-day--selected";
6
+ dayType2["disabled"] = "calendar-day--disabled";
7
+ return dayType2;
8
+ })(dayType || {});
9
+ var FCalenderDayPageobject = class {
10
+ constructor(selector) {
11
+ this.selector = selector;
12
+ }
13
+ el() {
14
+ return cy.get(this.selector);
15
+ }
16
+ number() {
17
+ return cy.get(`${this.selector}>span:first`);
18
+ }
19
+ srOnly() {
20
+ return cy.get(`${this.selector}>.sr-only`);
21
+ }
22
+ button() {
23
+ return this.el().parent('[data-test="select-day-button"]');
24
+ }
25
+ click() {
26
+ return this.button().click();
27
+ }
28
+ };
29
+
30
+ // src/cypress/FBadge.pageobject.ts
31
+ var FBadgePageObject = class {
32
+ /**
33
+ * @param selector - the root of the badge.
34
+ */
35
+ constructor(selector) {
36
+ this.selector = selector;
37
+ }
38
+ el() {
39
+ return cy.get(this.selector);
40
+ }
41
+ status() {
42
+ return this.el().then(
43
+ (el) => el[0].className.replace(/.*badge--(\w+).*/, "$1")
44
+ );
45
+ }
46
+ isInverted() {
47
+ return this.el().then(
48
+ (el) => el[0].className.replace(/.*badge--(\w+)-(\w+).*/, "$2") === "inverted"
49
+ );
50
+ }
51
+ };
52
+
53
+ // src/cypress/FCheckboxField.pageobject.ts
54
+ var FCheckboxFieldPageObject = class {
55
+ /**
56
+ * @param selector - the root of the checkbox, usually `<div class="checkbox">...</div>`.
57
+ * @param index - the index of matched radiobuttons
58
+ */
59
+ constructor(selector, index) {
60
+ if (index) {
61
+ this.selector = `${selector}:nth(${index})`;
62
+ } else {
63
+ this.selector = selector;
64
+ }
65
+ this.el = () => cy.get(this.selector);
66
+ }
67
+ checkbox() {
68
+ return cy.get(`${this.selector} input`);
69
+ }
70
+ label() {
71
+ return cy.get(`${this.selector} .checkbox__label`);
72
+ }
73
+ select() {
74
+ return this.label().click();
75
+ }
76
+ isSelected() {
77
+ return this.checkbox().then((el) => {
78
+ return el.get(0).checked;
79
+ });
80
+ }
81
+ value() {
82
+ return this.checkbox().then((el) => {
83
+ return el.get(0).value;
84
+ });
85
+ }
86
+ details() {
87
+ return cy.get(`${this.selector} .checkbox__details`);
88
+ }
89
+ };
90
+
91
+ // src/cypress/FLabel.pageobject.ts
92
+ var FLabelPageObject = class {
93
+ /**
94
+ * @param selector - the root of the label, usually `<label class="label">...</label>`.
95
+ */
96
+ constructor(selector) {
97
+ this.selector = selector;
98
+ this.el = () => cy.get(this.selector);
99
+ }
100
+ /**
101
+ * Hjälptext
102
+ */
103
+ description() {
104
+ return cy.get(`${this.selector} .label__description`);
105
+ }
106
+ /**
107
+ * ErrorIcon
108
+ */
109
+ errorIcon() {
110
+ return cy.get(`${this.selector} .icon.label__icon--left.f-icon-error`);
111
+ }
112
+ /**
113
+ * Formatbeskrivning
114
+ */
115
+ formatDescription() {
116
+ return cy.get(
117
+ `${this.selector} .label__description.label__description--format`
118
+ );
119
+ }
120
+ /**
121
+ * Felmeddelande
122
+ */
123
+ errorMessage() {
124
+ return cy.get(`${this.selector} .label__message.label__message--error`);
125
+ }
126
+ };
127
+
128
+ // src/cypress/FTooltip.pageobject.ts
129
+ var FTooltipPageObject = class {
130
+ /**
131
+ * @param selector - the root of the tooltip
132
+ */
133
+ constructor(selector) {
134
+ this.selector = selector;
135
+ }
136
+ el() {
137
+ return cy.get(this.selector);
138
+ }
139
+ iButton() {
140
+ return cy.get(
141
+ [
142
+ /* no attached to anything */
143
+ `.tooltip__button:has(~ :is(${this.selector}))`,
144
+ /* attached to label or heading */
145
+ `.tooltip__container:has(.tooltip__button):has(~ :is(${this.selector})) > .tooltip__button`
146
+ ].join(", ")
147
+ );
148
+ }
149
+ header() {
150
+ return cy.get(`${this.selector} .tooltip__header`);
151
+ }
152
+ body() {
153
+ return cy.get(`${this.selector} .tooltip__body`);
154
+ }
155
+ closeButton() {
156
+ return cy.get(`${this.selector} .close-button`);
157
+ }
158
+ };
159
+
160
+ // src/cypress/FCheckboxGroup.pageobject.ts
161
+ var FCheckboxGroupPageObject = class {
162
+ /**
163
+ * @param selector - the root of the checkbox group, usually `<div class="checkbox-group">...</div>`.
164
+ */
165
+ constructor(selector) {
166
+ this.selector = selector;
167
+ this.el = () => cy.get(this.selector);
168
+ this.label = new FLabelPageObject(`${this.selector} legend.label`);
169
+ this.tooltip = new FTooltipPageObject(`${this.selector} .tooltip`);
170
+ }
171
+ content() {
172
+ return cy.get(`${this.selector} .checkbox-group__content`);
173
+ }
174
+ checkBox(checkboxSelector) {
175
+ return new FCheckboxFieldPageObject(
176
+ `${this.selector} ${checkboxSelector}`
177
+ );
178
+ }
179
+ numberOfCheckboxes() {
180
+ return cy.get(`${this.selector} input`).then((el) => {
181
+ return el.length;
182
+ });
183
+ }
184
+ };
185
+
186
+ // src/cypress/FContextMenu.pageobject.ts
187
+ var FContextMenuPageObject = class {
188
+ el() {
189
+ return cy.get(this.selector);
190
+ }
191
+ /**
192
+ * @param selector - the root of the page header, usually `<nav class="contextmenu">...</nav>`.
193
+ */
194
+ constructor(selector) {
195
+ this.selector = selector;
196
+ }
197
+ /**
198
+ * Get all items in the FContextMenu
199
+ * @returns all items
200
+ */
201
+ items() {
202
+ return cy.get(`${this.selector} .contextmenu__list__item`);
203
+ }
204
+ /**
205
+ * Get the item at position index in the FContextMenu
206
+ *
207
+ * @param index - the position index in the item array
208
+ * @returns Menu item with given index
209
+ */
210
+ item(index) {
211
+ return this.items().eq(index);
212
+ }
213
+ /**
214
+ * Get link for item at index
215
+ *
216
+ * @param index - the position index in the item array
217
+ * @returns link with given index
218
+ */
219
+ getItemLink(index) {
220
+ return cy.get(
221
+ `${this.selector} .contextmenu__list__item a:nth(${index})`
222
+ );
223
+ }
224
+ };
225
+
226
+ // src/cypress/FErrorList.pageobject.ts
227
+ var FErrorListPageObject = class {
228
+ /**
229
+ * @param selector - the root of the errorlist.
230
+ */
231
+ constructor(selector) {
232
+ this.selector = selector;
233
+ this.el = () => cy.get(this.selector);
234
+ }
235
+ /**
236
+ * Get `li` elements. Verify count using `.should("have.length", N)`.
237
+ */
238
+ listItems() {
239
+ return cy.get(`${this.selector} li`);
240
+ }
241
+ /**
242
+ * Get `a` elements. Verify count using `.should("have.length", N)`.
243
+ */
244
+ links() {
245
+ return cy.get(`${this.selector} a`);
246
+ }
247
+ getLink(index) {
248
+ return cy.get(`${this.selector} a:nth(${index})`);
249
+ }
250
+ getLinkByName(error) {
251
+ let link = () => cy.get(`${this.selector} ${error}`);
252
+ return cy.get(`${this.selector} a`).each((el) => {
253
+ if (el.get(0).innerText.trim() === error) {
254
+ link = () => el.get(0);
255
+ }
256
+ }).then(() => {
257
+ return link();
258
+ });
259
+ }
260
+ hasError(error) {
261
+ let hasSelectedError = false;
262
+ return cy.get(`${this.selector} li`).each((el) => {
263
+ if (el.get(0).innerText.trim() === error) {
264
+ hasSelectedError = true;
265
+ }
266
+ }).then(() => {
267
+ return hasSelectedError;
268
+ });
269
+ }
270
+ };
271
+
272
+ // src/cypress/FValidationForm.pageobject.ts
273
+ var FValidationFormPageObject = class {
274
+ /**
275
+ * @param selector - the root of the validation form.
276
+ */
277
+ constructor(selector) {
278
+ this.selector = selector;
279
+ this.errorlist = new FErrorListPageObject(
280
+ `${this.selector} .error-list`
281
+ );
282
+ }
283
+ el() {
284
+ return cy.get(this.selector);
285
+ }
286
+ };
287
+
288
+ // src/cypress/FCrudDataset.pageobject.ts
289
+ var FCrudDatasetPageObject = class {
290
+ constructor(selector) {
291
+ this.selector = selector;
292
+ this.el = () => cy.get(this.selector);
293
+ this.form = new FValidationFormPageObject(`${this.selector} form`);
294
+ }
295
+ addButton() {
296
+ return cy.get(
297
+ `${this.selector} [data-test="f-crud-dataset-add-button"]`
298
+ );
299
+ }
300
+ cancelButton() {
301
+ return cy.get(
302
+ `${this.selector} .modal__footer > .button-group > .button--secondary`
303
+ );
304
+ }
305
+ confirmButton() {
306
+ return cy.get(
307
+ `${this.selector} .modal__footer > .button-group > .button--primary`
308
+ );
309
+ }
310
+ };
311
+
312
+ // src/cypress/FExpandablePanel.pageobject.ts
313
+ var FExpandablePanelPageObject = class {
314
+ /**
315
+ * @param selector - the root of the expandablepanel, usually `<div class="expandable-panel">...</div>`.
316
+ */
317
+ constructor(selector) {
318
+ this.selector = selector;
319
+ this.el = () => cy.get(this.selector);
320
+ this.expandCollapseIcon = () => cy.get(`${this.selector} .expandable-panel__icon`);
321
+ this.header = () => cy.get(`${this.selector} .expandable-panel__heading button`);
322
+ this.notificationIcon = () => cy.get(
323
+ `${this.selector} .expandable-panel__heading .expandable-panel__notification`
324
+ );
325
+ this.body = () => cy.get(`${this.selector} .expandable-panel__body`);
326
+ this.relatedInfo = () => cy.get(`${this.selector} .expandable-panel__outside`);
327
+ }
328
+ /**
329
+ * Returns the number of notifications
330
+ */
331
+ numberOfNotifications() {
332
+ let nrOfNotifications = 0;
333
+ this.notificationIcon().invoke("text").then(
334
+ (text) => text.replace(/(\d+)/, (match, matchGroup1) => {
335
+ nrOfNotifications = parseInt(matchGroup1, 10);
336
+ return matchGroup1;
337
+ })
338
+ );
339
+ return cy.wrap("Count number of notifications").then(() => {
340
+ return nrOfNotifications;
341
+ });
342
+ }
343
+ isOpen() {
344
+ let isPanelOpen = false;
345
+ this.el().invoke("attr", "class").then((classes) => {
346
+ const panelClasses = classes ? classes.split(" ") : [];
347
+ isPanelOpen = panelClasses.includes(
348
+ "expandable-panel--expanded"
349
+ );
350
+ });
351
+ return cy.wrap("Check if panel is expanded").then(() => {
352
+ return isPanelOpen;
353
+ });
354
+ }
355
+ };
356
+
357
+ // src/cypress/FRadioField.pageobject.ts
358
+ var FRadioFieldPageObject = class {
359
+ /**
360
+ * @param selector - the root of the radio button, usually `<div class="radio-button">...</div>`.
361
+ * @param index - the index of matched radiobuttons
362
+ */
363
+ constructor(selector, index) {
364
+ if (index) {
365
+ this.selector = `${selector}:nth(${index})`;
366
+ } else {
367
+ this.selector = selector;
368
+ }
369
+ this.el = () => cy.get(this.selector);
370
+ }
371
+ radioButton() {
372
+ return cy.get(`${this.selector} input`);
373
+ }
374
+ label() {
375
+ return cy.get(`${this.selector} .radio-button__label`);
376
+ }
377
+ select() {
378
+ return cy.get(`${this.selector} label`).click();
379
+ }
380
+ details() {
381
+ return cy.get(`${this.selector} .radio-button__details`);
382
+ }
383
+ isSelected() {
384
+ return this.radioButton().then((el) => {
385
+ return el.get(0).checked;
386
+ });
387
+ }
388
+ value() {
389
+ return this.radioButton().then((el) => {
390
+ return el.get(0).value;
391
+ });
392
+ }
393
+ };
394
+
395
+ // src/cypress/FFieldset.pageobject.ts
396
+ var FFieldsetPageObject = class {
397
+ /**
398
+ * @param selector - the root of the fieldset, usually `<div class="radio-button-group">...</div>` or `<div class="checkbox-group">...</div>`.
399
+ */
400
+ constructor(selector) {
401
+ this.selector = selector;
402
+ this.el = () => cy.get(this.selector);
403
+ this.label = new FLabelPageObject(`${this.selector} .label`);
404
+ this.tooltip = new FTooltipPageObject(`${this.selector} .tooltip`);
405
+ }
406
+ content() {
407
+ return cy.get(`${this.selector} .fieldset__content`);
408
+ }
409
+ radioButton(buttonSelector) {
410
+ return new FRadioFieldPageObject(`${this.selector} ${buttonSelector}`);
411
+ }
412
+ numberOfRadio() {
413
+ return cy.get(`${this.selector} .radio-button`).then((el) => {
414
+ return el.length;
415
+ });
416
+ }
417
+ checkBox(checkboxSelector) {
418
+ return new FCheckboxFieldPageObject(
419
+ `${this.selector} ${checkboxSelector}`
420
+ );
421
+ }
422
+ numberOfCheckboxes() {
423
+ return cy.get(`${this.selector} .checkbox`).then((el) => {
424
+ return el.length;
425
+ });
426
+ }
427
+ };
428
+
429
+ // src/cypress/FProgressbar.pageobject.ts
430
+ var FProgressbarPageObject = class {
431
+ /**
432
+ * @param selector - the root of the static field, usually `<div class="progress">...</div>`.
433
+ */
434
+ constructor(selector = ".progress") {
435
+ this.selector = selector;
436
+ }
437
+ /**
438
+ * Get the element itself.
439
+ */
440
+ el() {
441
+ return cy.get(this.selector);
442
+ }
443
+ /**
444
+ * @internal
445
+ */
446
+ progressMeter() {
447
+ return cy.get(`${this.selector} .progress__meter`);
448
+ }
449
+ /**
450
+ * Returns progressbar status, one of:
451
+ *
452
+ * - `"pending"` - for value `0`.
453
+ * - `"inprogress"` - for values between `1` and `99`.
454
+ * - `"finished"` - for value `100`.
455
+ */
456
+ progressStatus() {
457
+ return this.progressMeter().then((el) => {
458
+ return el[0].classList[1].replace(
459
+ /.*progress__meter--(\w+).*/,
460
+ "$1"
461
+ );
462
+ });
463
+ }
464
+ /**
465
+ * Get the current value of the progressbar.
466
+ */
467
+ value() {
468
+ return this.progressMeter().then((el) => {
469
+ return parseInt(el[0].ariaValueNow ?? "0", 10);
470
+ });
471
+ }
472
+ };
473
+
474
+ // src/cypress/FFileItem.pageobject.ts
475
+ var FFileItemPageObject = class {
476
+ /**
477
+ * @param selector - the root of the file item, usually `<div class="file-item">...</div>`.
478
+ */
479
+ constructor(selector) {
480
+ this.selector = selector;
481
+ this.el = () => cy.get(this.selector);
482
+ this.fileName = () => cy.get(`${this.selector} .file-item__file-name`);
483
+ this.fileIcon = () => cy.get(`${this.selector} .file-item__file-open .icon`);
484
+ this.cancelDeleteButton = () => cy.get(`${this.selector} .file-item__file-remove`);
485
+ this.cancelDeleteButtonIcon = () => cy.get(`${this.selector} .file-item__file-remove .icon`);
486
+ this.progressMeter = new FProgressbarPageObject(this.selector);
487
+ }
488
+ typeOfFileIcon() {
489
+ return this.fileIcon().then(
490
+ (el) => el[1].classList[1].replace(/.*f-icon-(\w+).*/, "$1")
491
+ );
492
+ }
493
+ typeOfButtonIcon() {
494
+ return this.cancelDeleteButtonIcon().then(
495
+ (el) => el[0].classList[2].replace(/.*f-icon-(\w+).*/, "$1")
496
+ );
497
+ }
498
+ };
499
+
500
+ // src/cypress/FFileSelector.pageobject.ts
501
+ var FFileSelectorPageObject = class {
502
+ /**
503
+ * @param selector - the root of the file file selector, usually `<div class="file-selector">...</div>`.
504
+ */
505
+ constructor(selector) {
506
+ this.selector = selector;
507
+ this.el = () => cy.get(this.selector);
508
+ this.addFile = () => cy.get(`${this.selector} > input`);
509
+ this.icon = () => cy.get(`${this.selector} .f-icon-paper-clip`);
510
+ }
511
+ };
512
+
513
+ // src/cypress/FListItem.pageobject.ts
514
+ var FListItemPageObject = class {
515
+ /**
516
+ * @param selector - the root of the li, usually `<li class="list__item">...</li>`.
517
+ * @param index - the index of matched li:s.
518
+ */
519
+ constructor(selector, index) {
520
+ this.selector = `${selector}:nth(${index})`;
521
+ this.index = index;
522
+ this.el = () => cy.get(this.selector);
523
+ }
524
+ /**
525
+ * Select checkbox page object
526
+ */
527
+ selectCheckbox() {
528
+ return new FCheckboxFieldPageObject(
529
+ `${this.selector} .list__item__selectpane__input`
530
+ );
531
+ }
532
+ /**
533
+ * Content / Clickable link if checkbox:false
534
+ */
535
+ content() {
536
+ return cy.get(`${this.selector} .list__item__itempane`);
537
+ }
538
+ };
539
+
540
+ // src/cypress/FList.pageobject.ts
541
+ var FListPageObject = class {
542
+ /**
543
+ * @param selector - the root of the label, usually `<li class="list">...</label>`.
544
+ */
545
+ constructor(selector) {
546
+ this.selector = selector;
547
+ this.el = () => cy.get(this.selector);
548
+ }
549
+ /**
550
+ * Hämta page object för specifikt list item.
551
+ */
552
+ listItem(index) {
553
+ return new FListItemPageObject(`${this.selector} .list__item`, index);
554
+ }
555
+ /**
556
+ * Hämta alla list items.
557
+ */
558
+ listItems() {
559
+ return cy.get(`${this.selector} .list__item .list__item__itempane`);
560
+ }
561
+ /**
562
+ * Felmeddelande
563
+ */
564
+ emptyMessage() {
565
+ return cy.get(`${this.selector} .list__item`);
566
+ }
567
+ };
568
+
569
+ // src/cypress/FLoader.pageobject.ts
570
+ var FLoaderPageObject = class {
571
+ /**
572
+ * @param selector - the root of the loader, usually `<div class="loader">...</div>`.
573
+ */
574
+ constructor(selector = ".loader") {
575
+ this.selector = selector;
576
+ }
577
+ el() {
578
+ return cy.get(this.selector);
579
+ }
580
+ wrapper() {
581
+ return cy.get(`${this.selector} .loader__wrapper`);
582
+ }
583
+ waitText() {
584
+ return cy.get(`${this.selector} .loader__wait-text`);
585
+ }
586
+ };
587
+
588
+ // src/cypress/FMessageBox.pageobject.ts
589
+ var FMessageBoxPageObject = class {
590
+ /**
591
+ * @param selector - the root of the message box, usually `<div class="message-box">...</div>`.
592
+ */
593
+ constructor(selector) {
594
+ this.selector = selector;
595
+ this.el = () => cy.get(selector);
596
+ this.errors = new FErrorListPageObject(`${this.selector}`);
597
+ }
598
+ icon() {
599
+ return cy.get(`${this.selector} .message-box__icon`);
600
+ }
601
+ content() {
602
+ return cy.get(`${this.selector} .message-box__content`);
603
+ }
604
+ typeOfMessage() {
605
+ return this.el().then(
606
+ (el) => el[0].className.replace(/.*message-box--(\w+).*/, "$1")
607
+ );
608
+ }
609
+ };
610
+
611
+ // src/cypress/FModal.pageobject.ts
612
+ var FModalPageObject = class {
613
+ /**
614
+ * @param selector - the root of the Modal, usually `<div class="modal">...</div>`.
615
+ */
616
+ constructor(selector) {
617
+ this.selector = selector;
618
+ this.el = () => cy.get(`${this.selector} .modal__dialog-container`);
619
+ }
620
+ title() {
621
+ return cy.get(
622
+ `${this.selector} .modal__dialog-container .modal__title`
623
+ );
624
+ }
625
+ body() {
626
+ return cy.get(
627
+ `${this.selector} .modal__dialog-container .modal__content`
628
+ );
629
+ }
630
+ primaryButton() {
631
+ return cy.get(
632
+ `${this.selector} .modal__dialog-container .modal__footer .button--primary`
633
+ );
634
+ }
635
+ secondaryButton() {
636
+ return cy.get(
637
+ `${this.selector} .modal__dialog-container .modal__footer .button--secondary`
638
+ );
639
+ }
640
+ closeCross() {
641
+ return cy.get(
642
+ `${this.selector} .modal__dialog-container .close-button`
643
+ );
644
+ }
645
+ typeOfModal() {
646
+ return cy.get(this.selector).then((el) => el[0].className.replace(/.*modal--(\w+).*/, "$1"));
647
+ }
648
+ };
649
+
650
+ // src/cypress/FFormModal.pageobject.ts
651
+ var FFormModalPageObject = class extends FModalPageObject {
652
+ /**
653
+ * @param selector - the root of the Modal, usually `<div class="modal">...</div>`.
654
+ */
655
+ constructor(selector) {
656
+ super(selector);
657
+ this.selector = selector;
658
+ this.el = () => cy.get(this.selector);
659
+ }
660
+ submitButton() {
661
+ return this.primaryButton();
662
+ }
663
+ cancelButton() {
664
+ return this.secondaryButton();
665
+ }
666
+ };
667
+
668
+ // src/cypress/IPopupMenu.pageobject.ts
669
+ var IPopupMenuPageObject = class {
670
+ el() {
671
+ return cy.get(this.selector);
672
+ }
673
+ /**
674
+ * @param selector - the root of the IPopupMenu, usually `<nav class="IPopupMenu">...</nav>`.
675
+ */
676
+ constructor(selector) {
677
+ this.selector = selector;
678
+ }
679
+ /**
680
+ * Get all items in the IPopupMenu
681
+ * @returns all items
682
+ */
683
+ items() {
684
+ return cy.get(`${this.selector} .ipopupmenu__list__item`);
685
+ }
686
+ /**
687
+ * Get the item at position index in the IPopupMenu
688
+ *
689
+ * @param index - the position index in the item array
690
+ * @returns Menu item with given index
691
+ */
692
+ item(index) {
693
+ return this.items().eq(index);
694
+ }
695
+ /**
696
+ * Get link for item at index
697
+ *
698
+ * @param index - the position index in the item array
699
+ * @returns link with given index
700
+ */
701
+ getItemLink(index) {
702
+ return cy.get(
703
+ `${this.selector} .ipopupmenu__list__item a:nth(${index})`
704
+ );
705
+ }
706
+ /**
707
+ * Get currently selected menu item
708
+ *
709
+ * @returns Currently selected item
710
+ */
711
+ getSelectedItem() {
712
+ return this.items().get(
713
+ `${this.selector} .ipopupmenu__list__item--highlight`
714
+ );
715
+ }
716
+ };
717
+
718
+ // src/cypress/FNavigationMenu/FNavigationMenu.pageobject.ts
719
+ var FNavigationMenuPageobject = class {
720
+ /**
721
+ * @param selector - the root of the navigation menu, usually `.imenu`.
722
+ */
723
+ constructor(selector = ".imenu") {
724
+ this.selector = selector;
725
+ }
726
+ el() {
727
+ return cy.get(this.selector);
728
+ }
729
+ /**
730
+ * Get all visible items in the menu, including the popup menu item.
731
+ *
732
+ * @returns All visible menu items.
733
+ */
734
+ items() {
735
+ return cy.get(
736
+ `${this.selector} .imenu__list__item:not(.imenu__list__item--hidden)`
737
+ );
738
+ }
739
+ /**
740
+ * Get all overflowed (hidden) items in the menu.
741
+ *
742
+ * @returns All overflowed menu items.
743
+ */
744
+ overflowItems() {
745
+ return cy.get(`${this.selector} .imenu__list__item--hidden`);
746
+ }
747
+ /**
748
+ * Get the visible item at position index in the menu, including popup item.
749
+ *
750
+ * @param index - the position index in the item array.
751
+ * @returns Menu item with given index.
752
+ */
753
+ item(index) {
754
+ return this.items().eq(index);
755
+ }
756
+ /**
757
+ * Get link for visible item at given index, including popup item.
758
+ *
759
+ * @param index - the position index in the item array.
760
+ * @returns link with given index.
761
+ */
762
+ itemLink(index) {
763
+ return cy.get(
764
+ `${this.selector} .imenu__list__item:not(.imenu__list__item--hidden) a:nth(${index})`
765
+ );
766
+ }
767
+ /**
768
+ * Get currently selected menu item.
769
+ *
770
+ * @returns Currently selected item.
771
+ */
772
+ selectedItem() {
773
+ return this.items().get(
774
+ `${this.selector} .imenu__list__item--highlight`
775
+ );
776
+ }
777
+ /**
778
+ * Get the menu item that open the popup menu.
779
+ *
780
+ * @returns The popup menu item.
781
+ */
782
+ popupItem() {
783
+ return this.items().get(`${this.selector} .imenu__popup-item__wrapper`);
784
+ }
785
+ /**
786
+ * Returns `IPopupMenu` page object.
787
+ */
788
+ popupMenu() {
789
+ return new IPopupMenuPageObject(`.ipopupmenu > ul.ipopupmenu__list`);
790
+ }
791
+ };
792
+
793
+ // src/cypress/FOffline.pageobject.ts
794
+ var FOfflinePageObject = class {
795
+ /**
796
+ * @param selector - optional custom selector to offline component.
797
+ */
798
+ constructor(selector = "body > .offline__wrapper") {
799
+ this.selector = selector;
800
+ this.el = () => cy.get(this.selector);
801
+ this.banner = () => cy.get(`${this.selector} .offline`);
802
+ }
803
+ };
804
+
805
+ // src/cypress/FOutputField.pageobject.ts
806
+ var FOutputFieldPageobject = class {
807
+ constructor(selector) {
808
+ this.selector = selector;
809
+ this.el = () => cy.get(this.selector);
810
+ this.label = new FLabelPageObject(`${this.selector} .label`);
811
+ this.tooltip = new FTooltipPageObject(`${this.selector} .tooltip`);
812
+ this.body = () => cy.get(`${this.selector} .output-field__output`);
813
+ }
814
+ };
815
+
816
+ // src/cypress/Input.ts
817
+ var Input = class {
818
+ constructor(selector, inputSelector) {
819
+ this.selector = selector;
820
+ this.inputSelector = inputSelector;
821
+ this.el = () => cy.get(this.selector);
822
+ }
823
+ enter(text) {
824
+ return cy.get(`${this.selector} ${this.inputSelector}`).clear().type(text).blur();
825
+ }
826
+ value() {
827
+ return cy.get(`${this.selector} ${this.inputSelector}`).then((el) => {
828
+ return el.get(0).value;
829
+ });
830
+ }
831
+ };
832
+
833
+ // src/cypress/FTextField.pageobject.ts
834
+ var FTextFieldPageObject = class extends Input {
835
+ /**
836
+ * @param selector - the root of the text field, usually `<div class="text-field">...</div>`.
837
+ */
838
+ constructor(selector) {
839
+ super(selector, "input");
840
+ this.selector = selector;
841
+ this.el = () => cy.get(this.selector);
842
+ this.label = new FLabelPageObject(`${this.selector} .label`);
843
+ this.tooltip = new FTooltipPageObject(`${this.selector} .tooltip`);
844
+ }
845
+ input() {
846
+ return cy.get(`${this.selector} input`);
847
+ }
848
+ errorIcon() {
849
+ return cy.get(`${this.selector} .icon.text-field__icon.f-icon-error`);
850
+ }
851
+ };
852
+
853
+ // src/cypress/ICalendarNavbar.pageobject.ts
854
+ var ICalendarNavbarPageObject = class {
855
+ /**
856
+ * @param selector - CSS selector to the ICalendarNavbar object
857
+ */
858
+ constructor(selector = ".calendar-navbar") {
859
+ this.selector = selector;
860
+ }
861
+ el() {
862
+ return cy.get(this.selector);
863
+ }
864
+ text() {
865
+ return cy.get(`${this.selector} .calendar-navbar__month`);
866
+ }
867
+ prevButton() {
868
+ return cy.get(`${this.selector} .calendar-navbar__arrow--previous`);
869
+ }
870
+ nextButton() {
871
+ return cy.get(`${this.selector} .calendar-navbar__arrow--next`);
872
+ }
873
+ };
874
+
875
+ // src/cypress/FDatepickerField.pageobject.ts
876
+ var FDatepickerFieldPageobject = class {
877
+ constructor(selector) {
878
+ this.selector = selector;
879
+ this.textField = new FTextFieldPageObject(
880
+ `${this.selector} .text-field`
881
+ );
882
+ this.calendarNavbar = new ICalendarNavbarPageObject(
883
+ `${this.selector} .calendar-navbar`
884
+ );
885
+ }
886
+ el() {
887
+ return cy.get(this.selector);
888
+ }
889
+ input() {
890
+ return this.textField.input();
891
+ }
892
+ textFieldErrorMessage() {
893
+ return this.textField.label.errorMessage();
894
+ }
895
+ toggleCalendarButton() {
896
+ return cy.get(`${this.selector} [data-test="calendar-button"]`);
897
+ }
898
+ closeCalendarButton() {
899
+ return cy.get(`${this.selector}__close__button`);
900
+ }
901
+ popup() {
902
+ return cy.get(`${this.selector} .popup`);
903
+ }
904
+ calendar() {
905
+ return cy.get(`${this.selector} .calendar__wrapper`);
906
+ }
907
+ calendarCaption() {
908
+ return this.calendarNavbar.text();
909
+ }
910
+ navPrevButton() {
911
+ return this.calendarNavbar.prevButton();
912
+ }
913
+ navNextButton() {
914
+ return this.calendarNavbar.nextButton();
915
+ }
916
+ dayButton(date) {
917
+ return cy.get(`${this.selector} [data-date="${date}"]`);
918
+ }
919
+ disabledDay(date) {
920
+ return cy.get(
921
+ `${this.selector} [data-date="${date}"] .calendar-day--disabled`
922
+ );
923
+ }
924
+ selectedDay() {
925
+ return cy.get(`${this.selector} [data-date] .calendar-day--selected`);
926
+ }
927
+ highlightedDay() {
928
+ return cy.get(`${this.selector} [data-date] .calendar-day--today`);
929
+ }
930
+ };
931
+
932
+ // src/cypress/FPageHeader/FPageHeader.pageobject.ts
933
+ var FPageHeaderPageobject = class {
934
+ /**
935
+ * @param selector - the root of the page header, usually `div.page-header__root`.
936
+ */
937
+ constructor(selector = ".page-header__root") {
938
+ this.selector = selector;
939
+ }
940
+ /**
941
+ * Get root element.
942
+ */
943
+ el() {
944
+ return cy.get(this.selector);
945
+ }
946
+ /**
947
+ * Get skiplink anchor element and wrapper for `skip-link-text` slot.
948
+ */
949
+ skipLink() {
950
+ return cy.get(`${this.selector} .iskiplink`).then(($el) => {
951
+ $el.css({ top: 45, left: 10 });
952
+ });
953
+ }
954
+ /**
955
+ * Get wrapper element for `default` slot.
956
+ */
957
+ applicationName() {
958
+ return cy.get(`${this.selector} .page-header__app-name`);
959
+ }
960
+ /**
961
+ * Get wrapper element for `right` slot.
962
+ */
963
+ rightSlot() {
964
+ return cy.get(`${this.selector} .page-header__right-slot`);
965
+ }
966
+ /**
967
+ * Get wrapper element for `logo` slot.
968
+ */
969
+ logoSlot() {
970
+ return cy.get(`${this.selector} div.page-header__logo`);
971
+ }
972
+ };
973
+
974
+ // src/cypress/FRadioGroup.pageobject.ts
975
+ var FRadioGroupPageObject = class {
976
+ /**
977
+ * @param selector - the root of the radio group, usually `<div class="radio-button-group">...</div>`.
978
+ */
979
+ constructor(selector) {
980
+ this.selector = selector;
981
+ this.el = () => cy.get(this.selector);
982
+ this.label = new FLabelPageObject(`${this.selector} legend.label`);
983
+ this.tooltip = new FTooltipPageObject(`${this.selector} .tooltip`);
984
+ }
985
+ content() {
986
+ return cy.get(`${this.selector} .radio-button-group__content`);
987
+ }
988
+ radioButton(buttonSelector) {
989
+ return new FRadioFieldPageObject(`${this.selector} ${buttonSelector}`);
990
+ }
991
+ numberOfOptions() {
992
+ return cy.get(`${this.selector} .radio-button`).then((el) => {
993
+ return el.length;
994
+ });
995
+ }
996
+ };
997
+
998
+ // src/cypress/FSelectField.pageobject.ts
999
+ var FSelectFieldPageObject = class {
1000
+ /**
1001
+ * @param selector - the root of the select field, usually `<div class="select-field">...</div>`.
1002
+ */
1003
+ constructor(selector) {
1004
+ this.selector = selector;
1005
+ this.el = () => cy.get(this.selector);
1006
+ this.label = new FLabelPageObject(`${this.selector} .label`);
1007
+ this.tooltip = new FTooltipPageObject(`${this.selector} .tooltip`);
1008
+ }
1009
+ dropdown() {
1010
+ return cy.get(`${this.selector} select`);
1011
+ }
1012
+ arrowIcon() {
1013
+ return cy.get(
1014
+ `${this.selector} .icon.select-field__icon.f-icon-arrow-down`
1015
+ );
1016
+ }
1017
+ numberOfOptions() {
1018
+ return this.dropdown().then(
1019
+ (el) => el.find("option").not('[disabled="disabled"]').length
1020
+ );
1021
+ }
1022
+ listOfOptions() {
1023
+ const listItem = [];
1024
+ return cy.get(`${this.selector} select option`).not('[disabled="disabled"]').each((el) => {
1025
+ return listItem.push(el.get(0).innerText);
1026
+ }).then(() => listItem);
1027
+ }
1028
+ /**
1029
+ * Get the currently selected `<option>` element.
1030
+ */
1031
+ selectedOption() {
1032
+ return cy.get(`${this.selector} option:selected`);
1033
+ }
1034
+ selectedValue() {
1035
+ return this.dropdown().then((el) => {
1036
+ return el.get(0).value;
1037
+ });
1038
+ }
1039
+ };
1040
+
1041
+ // src/cypress/FSortFilterDataset.pageobject.ts
1042
+ var FSortFilterDatasetPageObject = class {
1043
+ constructor(selector) {
1044
+ this.selector = selector;
1045
+ this.el = () => cy.get(this.selector);
1046
+ this.selectField = new FSelectFieldPageObject(
1047
+ `${this.selector} .select-field--inline`
1048
+ );
1049
+ this.textField = new FTextFieldPageObject(
1050
+ `${this.selector} .sort-filter-dataset__search`
1051
+ );
1052
+ }
1053
+ header() {
1054
+ return cy.get(
1055
+ `${this.selector} .iflex .sort-filter-dataset__toolbar__header`
1056
+ );
1057
+ }
1058
+ };
1059
+
1060
+ // src/cypress/FStaticField.pageobject.ts
1061
+ var FStaticFieldPageObject = class {
1062
+ /**
1063
+ * @param selector - the root of the static field, usually `<div class="output-field">...</div>`.
1064
+ */
1065
+ constructor(selector) {
1066
+ this.selector = selector;
1067
+ this.el = () => cy.get(this.selector);
1068
+ this.label = new FLabelPageObject(`${this.selector} .label`);
1069
+ this.tooltip = new FTooltipPageObject(`${this.selector} .tooltip`);
1070
+ }
1071
+ body() {
1072
+ return cy.get(`${this.selector} p`);
1073
+ }
1074
+ };
1075
+
1076
+ // src/cypress/FTableColumn.pageobject.ts
1077
+ var FTableColumnPageObject = class {
1078
+ constructor(selector, index) {
1079
+ this.selector = `${selector}:nth(${index})`;
1080
+ this.index = index;
1081
+ this.el = () => cy.get(this.selector);
1082
+ }
1083
+ tableRowBodyContent(position) {
1084
+ return cy.get(`${this.selector} td:nth(${position})`);
1085
+ }
1086
+ tableRowHeaderContent() {
1087
+ return cy.get(`${this.selector} th`);
1088
+ }
1089
+ checkbox() {
1090
+ return new FCheckboxFieldPageObject(this.selector);
1091
+ }
1092
+ };
1093
+
1094
+ // src/cypress/FInteractiveTable.pageobject.ts
1095
+ var FInteractiveTablePageObject = class {
1096
+ /**
1097
+ * @param selector - table selector.
1098
+ */
1099
+ constructor(selector) {
1100
+ this.selector = selector;
1101
+ this.el = () => cy.get(this.selector);
1102
+ }
1103
+ caption() {
1104
+ return cy.get(`${this.selector} caption`);
1105
+ }
1106
+ bodyRow() {
1107
+ return cy.get(`${this.selector} tbody tr`);
1108
+ }
1109
+ headersRow() {
1110
+ return cy.get(`${this.selector} thead th`);
1111
+ }
1112
+ /**
1113
+ * Hämta page object för specifikt Table row item.
1114
+ */
1115
+ columnItem(index) {
1116
+ return new FTableColumnPageObject(
1117
+ `${this.selector} .table__row`,
1118
+ index
1119
+ );
1120
+ }
1121
+ /**
1122
+ * Hämta page object för specifikt Header row item.
1123
+ */
1124
+ headerRowItem() {
1125
+ return new FTableColumnPageObject(`${this.selector} .table__row`, 0);
1126
+ }
1127
+ getColumnSortedByIcon(index, order) {
1128
+ let iconName;
1129
+ switch (order) {
1130
+ case "ascending":
1131
+ iconName = "f-icon-caret-up";
1132
+ break;
1133
+ case "descending":
1134
+ iconName = "f-icon-caret-down";
1135
+ break;
1136
+ case "unsorted":
1137
+ iconName = "f-icon-sort";
1138
+ break;
1139
+ default:
1140
+ throw Error("Invalid order");
1141
+ }
1142
+ const column = this.headerRowItem().tableRowHeaderContent().eq(index);
1143
+ return column.find(`svg.${iconName}`);
1144
+ }
1145
+ };
1146
+
1147
+ // src/cypress/FTextareaField.pageobject.ts
1148
+ var FTextareaFieldPageObject = class extends Input {
1149
+ /**
1150
+ * @param selector - the root of the textarea field, usually `<div class="textarea-field">...</div>`.
1151
+ */
1152
+ constructor(selector) {
1153
+ super(selector, "textarea");
1154
+ this.selector = selector;
1155
+ this.el = () => cy.get(this.selector);
1156
+ this.label = new FLabelPageObject(`${this.selector} .label`);
1157
+ this.tooltip = new FTooltipPageObject(`${this.selector} .tooltip`);
1158
+ }
1159
+ input() {
1160
+ return cy.get(`${this.selector} textarea`);
1161
+ }
1162
+ errorIcon() {
1163
+ return cy.get(
1164
+ `${this.selector} .icon.textarea-field__icon.f-icon-error`
1165
+ );
1166
+ }
1167
+ };
1168
+
1169
+ // src/cypress/IAnimateExpand.pageobject.ts
1170
+ var IAnimateExpandPageobject = class {
1171
+ el() {
1172
+ return cy.get(this.selector);
1173
+ }
1174
+ content() {
1175
+ return cy.get(`${this.selector} [data-test="animation-content"]`);
1176
+ }
1177
+ animationClass() {
1178
+ return cy.get(`${this.selector} .animate-expand--expanded`);
1179
+ }
1180
+ /**
1181
+ * Wait for open animation to finish.
1182
+ */
1183
+ waitOnOpen() {
1184
+ cy.log("Wait for open animation to finish");
1185
+ this.animationClass().should("exist");
1186
+ this.waitOnAnimationCompleted();
1187
+ }
1188
+ /**
1189
+ * Wait for open animation to not exist.
1190
+ */
1191
+ waitOnAnimationCompleted() {
1192
+ cy.log("Wait for open animation to complete");
1193
+ this.animationClass().should("not.exist");
1194
+ }
1195
+ /**
1196
+ * Wait for close animation to finish.
1197
+ */
1198
+ waitOnClose() {
1199
+ cy.log("Wait for close animation to finish");
1200
+ cy.get(`${this.selector} [data-test="animation-content"] > *`).should(
1201
+ "not.exist"
1202
+ );
1203
+ }
1204
+ constructor(selector) {
1205
+ this.selector = selector;
1206
+ }
1207
+ };
1208
+
1209
+ // src/cypress/FWizard/FWizardStepHeader.pageobject.ts
1210
+ var FWizardStepHeaderPageobject = class {
1211
+ constructor(selector) {
1212
+ this.selector = selector;
1213
+ this.el = () => cy.get(this.selector);
1214
+ this.successIcon = () => cy.get(`${this.selector} .icon-stack .f-icon-success`);
1215
+ this.stepNumber = () => cy.get(`${this.selector} [data-test="step-number"]`).invoke("text");
1216
+ this.stepOf = () => cy.get(`${this.selector} .wizard-step__header__step-of`);
1217
+ this.title = () => cy.get(`${this.selector} .wizard-step__header__title`);
1218
+ }
1219
+ };
1220
+
1221
+ // src/cypress/FWizard/FWizardStep.pageobject.ts
1222
+ var STATUS = /* @__PURE__ */ ((STATUS2) => {
1223
+ STATUS2["done"] = "done";
1224
+ STATUS2["open"] = "open";
1225
+ STATUS2["pending"] = "pending";
1226
+ return STATUS2;
1227
+ })(STATUS || {});
1228
+ var FWizardStepPageobject = class {
1229
+ el() {
1230
+ return cy.get(this.selector);
1231
+ }
1232
+ /**
1233
+ * Get the primary button element of the FWizardStep
1234
+ */
1235
+ continue() {
1236
+ this.waitOnAnimationCompleted();
1237
+ return cy.get(`${this.selector} .button-group:last .button--primary`);
1238
+ }
1239
+ /**
1240
+ * Get the secondary button element of the FWizardStep
1241
+ */
1242
+ cancel() {
1243
+ this.waitOnAnimationCompleted();
1244
+ return cy.get(`${this.selector} .button-group:last .button--secondary`);
1245
+ }
1246
+ /**
1247
+ * Get the body element of the FWizardStep
1248
+ */
1249
+ body() {
1250
+ return cy.get(`${this.selector} .wizard-step-body`);
1251
+ }
1252
+ /**
1253
+ * Wait for open animation to finish.
1254
+ */
1255
+ waitOnOpen() {
1256
+ this.animateExpand.waitOnOpen();
1257
+ }
1258
+ /**
1259
+ * Wait for close animation to finish.
1260
+ */
1261
+ waitOnClose() {
1262
+ this.animateExpand.waitOnClose();
1263
+ }
1264
+ /**
1265
+ * Wait for any animation to complete.
1266
+ */
1267
+ waitOnAnimationCompleted() {
1268
+ this.animateExpand.waitOnAnimationCompleted();
1269
+ }
1270
+ constructor(selector) {
1271
+ this.selector = selector;
1272
+ this.errors = new FErrorListPageObject(`${this.selector} .error-list`);
1273
+ this.header = new FWizardStepHeaderPageobject(
1274
+ `${this.selector} .wizard-step__header`
1275
+ );
1276
+ this.animateExpand = new IAnimateExpandPageobject(this.selector);
1277
+ }
1278
+ /**
1279
+ * Get the status of the wizard step.
1280
+ * @see STATUS
1281
+ */
1282
+ status() {
1283
+ return this.el().then(
1284
+ (el) => el[0].className.replace(/.*wizard-step--(\w+).*/, "$1")
1285
+ );
1286
+ }
1287
+ };
1288
+
1289
+ // src/cypress/FWizard/FWizard.pageobject.ts
1290
+ var FWizardPageobject = class {
1291
+ el() {
1292
+ return cy.get(this.selector);
1293
+ }
1294
+ /**
1295
+ * Get all FWizardSteps in the FWizard
1296
+ *
1297
+ * @returns all steps
1298
+ */
1299
+ steps() {
1300
+ return cy.get(`${this.selector} .wizard-step`);
1301
+ }
1302
+ /**
1303
+ * Get specfic step in wizard.
1304
+ *
1305
+ * @param index - step to retrieve (0-indexed)
1306
+ * @returns FWizardStepPageObject
1307
+ */
1308
+ getStep(index) {
1309
+ return new FWizardStepPageobject(
1310
+ `${this.selector} .wizard-step:nth(${index})`
1311
+ );
1312
+ }
1313
+ /**
1314
+ * Turns off the animation att css class level.
1315
+ */
1316
+ turnOffAnimation() {
1317
+ cy.get(".wizard-step__connector").invoke("css", "transition", "none");
1318
+ }
1319
+ constructor(selector) {
1320
+ this.selector = selector;
1321
+ }
1322
+ };
1323
+
1324
+ // src/cypress/ICalendar/Calendar.pageobject.ts
1325
+ var monthList = [
1326
+ "januari",
1327
+ "februari",
1328
+ "mars",
1329
+ "april",
1330
+ "maj",
1331
+ "juni",
1332
+ "juli",
1333
+ "augusti",
1334
+ "september",
1335
+ "oktober",
1336
+ "november",
1337
+ "december"
1338
+ ];
1339
+ var CalendarPageObject = class {
1340
+ constructor(selector) {
1341
+ this.selector = selector;
1342
+ this.navigationBar = new ICalendarNavbarPageObject(
1343
+ `${this.selector} .calendar-navbar`
1344
+ );
1345
+ }
1346
+ el() {
1347
+ return cy.get(this.selector);
1348
+ }
1349
+ /**
1350
+ * return the weeknumbers surrounding the days in the calendar
1351
+ */
1352
+ weekNumbers() {
1353
+ return cy.get(`${this.selector} .calendar-month__cell--week-number`);
1354
+ }
1355
+ /**
1356
+ * return the weekday names surrounding the days in the calendar
1357
+ */
1358
+ headerCells() {
1359
+ return cy.get(
1360
+ `${this.selector} .calendar-month__header-cell > :is(abbr, span)`
1361
+ );
1362
+ }
1363
+ /**
1364
+ * Day to select in the calendar day-view via day number
1365
+ */
1366
+ dayButton(day = 1) {
1367
+ return cy.get(
1368
+ `${this.selector} .calendar-month__button:nth(${day - 1})`
1369
+ );
1370
+ }
1371
+ day(day = 1) {
1372
+ return new FCalenderDayPageobject(
1373
+ `${this.selector} .calendar-month__button:nth(${day - 1}) .calendar-day`
1374
+ );
1375
+ }
1376
+ /**
1377
+ * Uses the calendar navigation bar navigate to selected year and month
1378
+ * jan = 0, dec = 11
1379
+ * @param targetYear - Selected year
1380
+ * @param targetMonth - Selected month 0-11, 0 = Jan 11 = dec
1381
+ */
1382
+ navigateTo(targetYear, targetMonth) {
1383
+ cy.log(`Navigate to ${monthList[targetMonth]} ${targetYear}`);
1384
+ this.navigationBar.text().then((el) => {
1385
+ let currYear = 2023;
1386
+ let currentMonth = 0;
1387
+ el.text().replace(/(\w+)\s+(\d+)/, (match, p1, p2) => {
1388
+ currentMonth = monthList.findIndex((month) => month === p1);
1389
+ currYear = parseInt(p2, 10);
1390
+ return `${currYear}`;
1391
+ });
1392
+ const yearDiff = Math.abs(currYear - targetYear);
1393
+ const monthDiff = Math.abs(currentMonth - targetMonth);
1394
+ let diffInMonths = currYear > targetYear ? yearDiff * -12 : yearDiff * 12;
1395
+ diffInMonths += currentMonth > targetMonth ? -monthDiff : monthDiff;
1396
+ if (diffInMonths !== 0) {
1397
+ const stepMonth = diffInMonths < 0 ? this.navigationBar.prevButton() : this.navigationBar.nextButton();
1398
+ for (let i = 0; i < Math.abs(diffInMonths); i++) {
1399
+ stepMonth.click();
1400
+ }
1401
+ }
1402
+ });
1403
+ }
1404
+ };
1405
+
1406
+ // src/cypress/IPopup.pageobject.ts
1407
+ var IPopupPageObject = class {
1408
+ /**
1409
+ * @param selector - the root of the IPopup.
1410
+ */
1411
+ constructor(selector = ".popup") {
1412
+ this.selector = selector;
1413
+ }
1414
+ el() {
1415
+ return cy.get(this.selector);
1416
+ }
1417
+ };
1418
+
1419
+ // src/cypress/AlertScreenReader.pageobject.ts
1420
+ var AlertScreenReaderPageObject = class {
1421
+ constructor() {
1422
+ this.selector = "#fkui-alert-screen-reader";
1423
+ }
1424
+ /**
1425
+ * Returns the alertScreenReader element with text.
1426
+ */
1427
+ el() {
1428
+ return cy.get(this.selector);
1429
+ }
1430
+ };
1431
+
1432
+ // src/cypress/FDialogueTreeItem.pageobject.ts
1433
+ var FDialogueTreeItemPageObject = class {
1434
+ constructor(selector) {
1435
+ this.selector = selector;
1436
+ this.el = () => cy.get(this.selector);
1437
+ }
1438
+ title() {
1439
+ return cy.get(`${this.selector}`);
1440
+ }
1441
+ button() {
1442
+ return cy.get(`${this.selector} button`);
1443
+ }
1444
+ select() {
1445
+ return this.button().click();
1446
+ }
1447
+ };
1448
+
1449
+ // src/cypress/FDialogueTree.pageobject.ts
1450
+ var FDialogueTreePageObject = class {
1451
+ constructor(selector) {
1452
+ this.selector = selector;
1453
+ this.el = () => cy.get(this.selector);
1454
+ }
1455
+ options() {
1456
+ return cy.get(`${this.selector} li`);
1457
+ }
1458
+ option(index) {
1459
+ return new FDialogueTreeItemPageObject(
1460
+ `${this.selector} li:nth(${index})`
1461
+ );
1462
+ }
1463
+ };
1464
+ export {
1465
+ AlertScreenReaderPageObject,
1466
+ CalendarPageObject,
1467
+ FBadgePageObject,
1468
+ FCalenderDayPageobject,
1469
+ FCheckboxFieldPageObject,
1470
+ FCheckboxFieldPageObject as FCheckboxGroupFieldPageObject,
1471
+ FCheckboxGroupPageObject,
1472
+ FContextMenuPageObject,
1473
+ FCrudDatasetPageObject,
1474
+ FDatepickerFieldPageobject,
1475
+ FDialogueTreeItemPageObject,
1476
+ FDialogueTreePageObject,
1477
+ FErrorListPageObject,
1478
+ FExpandablePanelPageObject,
1479
+ FFieldsetPageObject,
1480
+ FFileItemPageObject,
1481
+ FFileSelectorPageObject,
1482
+ FFormModalPageObject,
1483
+ FInteractiveTablePageObject,
1484
+ FLabelPageObject,
1485
+ FListItemPageObject,
1486
+ FListPageObject,
1487
+ FLoaderPageObject,
1488
+ FMessageBoxPageObject,
1489
+ FModalPageObject,
1490
+ FNavigationMenuPageobject,
1491
+ FOfflinePageObject,
1492
+ FOutputFieldPageobject,
1493
+ FPageHeaderPageobject,
1494
+ FProgressbarPageObject,
1495
+ FRadioFieldPageObject,
1496
+ FRadioFieldPageObject as FRadioGroupFieldPageObject,
1497
+ FRadioGroupPageObject,
1498
+ FSelectFieldPageObject,
1499
+ FSortFilterDatasetPageObject,
1500
+ FStaticFieldPageObject,
1501
+ FTableColumnPageObject,
1502
+ FTextFieldPageObject,
1503
+ FTextareaFieldPageObject,
1504
+ FTooltipPageObject,
1505
+ FValidationFormPageObject,
1506
+ FWizardPageobject,
1507
+ FWizardStepHeaderPageobject,
1508
+ FWizardStepPageobject,
1509
+ ICalendarNavbarPageObject,
1510
+ IPopupMenuPageObject,
1511
+ IPopupPageObject,
1512
+ Input,
1513
+ STATUS,
1514
+ dayType
1515
+ };
1516
+ //# sourceMappingURL=cypress.esm.js.map