@fkui/vue 5.46.1 → 6.0.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.
- package/dist/cjs/{pageobject.js → cypress.js} +135 -311
- package/dist/cjs/cypress.js.map +7 -0
- package/dist/cjs/index.cjs.js +881 -1640
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/esm/index.esm.js +884 -1643
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/types/{pageobject.d.ts → cypress.d.ts} +48 -139
- package/dist/types/index.d.ts +588 -2249
- package/dist/types/tsdoc-metadata.json +1 -1
- package/htmlvalidate/configs/recommended.js +1 -1
- package/htmlvalidate/elements/components.js +14 -192
- package/htmlvalidate/elements/internal-components.js +0 -6
- package/htmlvalidate/rules/deprecated-validator.js +1 -1
- package/htmlvalidate/rules/index.js +2 -2
- package/htmlvalidate/rules/no-template-modal.rule.js +44 -0
- package/package.json +6 -7
- package/dist/cjs/pageobject.js.map +0 -7
- package/pageobject.d.ts +0 -1
- package/pageobject.js +0 -1
|
@@ -82,10 +82,6 @@ export declare class FBadgePageObject implements BasePageObject {
|
|
|
82
82
|
*/
|
|
83
83
|
constructor(selector: string);
|
|
84
84
|
el(): DefaultCypressChainable;
|
|
85
|
-
/**
|
|
86
|
-
* @deprecated Use assertion `label().should('trimmedText', '...')` instead.
|
|
87
|
-
*/
|
|
88
|
-
trimmedText(): Cypress.Chainable<string>;
|
|
89
85
|
status(): Cypress.Chainable<string>;
|
|
90
86
|
isInverted(): Cypress.Chainable<boolean>;
|
|
91
87
|
}
|
|
@@ -116,10 +112,6 @@ declare class FCheckboxFieldPageObject implements BasePageObject {
|
|
|
116
112
|
constructor(selector: string, index?: number);
|
|
117
113
|
checkbox(): Cypress.Chainable<JQuery<HTMLInputElement>>;
|
|
118
114
|
label(): DefaultCypressChainable;
|
|
119
|
-
/**
|
|
120
|
-
* @deprecated Use assertion `label().should('trimmedText', '...')` instead.
|
|
121
|
-
*/
|
|
122
|
-
trimmedText(): Cypress.Chainable<string>;
|
|
123
115
|
select(): DefaultCypressChainable;
|
|
124
116
|
isSelected(): Cypress.Chainable<boolean>;
|
|
125
117
|
value(): Cypress.Chainable<string>;
|
|
@@ -350,43 +342,6 @@ export declare class FFormModalPageObject extends FModalPageObject implements Ba
|
|
|
350
342
|
cancelButton(): DefaultCypressChainable;
|
|
351
343
|
}
|
|
352
344
|
|
|
353
|
-
/**
|
|
354
|
-
* @public
|
|
355
|
-
*/
|
|
356
|
-
export declare class FFormPageObject implements BasePageObject {
|
|
357
|
-
selector: string;
|
|
358
|
-
el: () => DefaultCypressChainable;
|
|
359
|
-
components: Record<string, BasePageObject>;
|
|
360
|
-
/**
|
|
361
|
-
* @param selector - the root of the form, usually `<form class="form">...</form>`.
|
|
362
|
-
*/
|
|
363
|
-
constructor(selector: string);
|
|
364
|
-
errorMessageBox(): FMessageBoxPageObject;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* @public
|
|
369
|
-
*/
|
|
370
|
-
export declare class FFormStepPageObject implements BasePageObject {
|
|
371
|
-
selector: string;
|
|
372
|
-
el: () => DefaultCypressChainable;
|
|
373
|
-
errors: FErrorListPageObject;
|
|
374
|
-
private headerSelector;
|
|
375
|
-
/**
|
|
376
|
-
* @param selector - the root of the form step, usually `<div class="form-step">...</div>`.
|
|
377
|
-
*/
|
|
378
|
-
constructor(selector: string);
|
|
379
|
-
/**
|
|
380
|
-
* The header contains the title and the valid icon.
|
|
381
|
-
*/
|
|
382
|
-
header(): DefaultCypressChainable;
|
|
383
|
-
title(): DefaultCypressChainable;
|
|
384
|
-
body(): DefaultCypressChainable;
|
|
385
|
-
validIcon(): DefaultCypressChainable;
|
|
386
|
-
isOpen(): Cypress.Chainable<boolean>;
|
|
387
|
-
editConfirmButton(): DefaultCypressChainable;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
345
|
/**
|
|
391
346
|
* @public
|
|
392
347
|
*/
|
|
@@ -421,10 +376,6 @@ export declare class FLabelPageObject implements BasePageObject {
|
|
|
421
376
|
* @param selector - the root of the label, usually `<label class="label">...</label>`.
|
|
422
377
|
*/
|
|
423
378
|
constructor(selector: string);
|
|
424
|
-
/**
|
|
425
|
-
* Label heading
|
|
426
|
-
*/
|
|
427
|
-
trimmedText(): Cypress.Chainable<string>;
|
|
428
379
|
/**
|
|
429
380
|
* Hjälptext
|
|
430
381
|
*/
|
|
@@ -436,7 +387,7 @@ export declare class FLabelPageObject implements BasePageObject {
|
|
|
436
387
|
/**
|
|
437
388
|
* Formatbeskrivning
|
|
438
389
|
*/
|
|
439
|
-
|
|
390
|
+
formatDescription(): DefaultCypressChainable;
|
|
440
391
|
/**
|
|
441
392
|
* Felmeddelande
|
|
442
393
|
*/
|
|
@@ -499,13 +450,6 @@ export declare class FLoaderPageObject implements BasePageObject {
|
|
|
499
450
|
*/
|
|
500
451
|
constructor(selector?: string);
|
|
501
452
|
el(): DefaultCypressChainable;
|
|
502
|
-
/**
|
|
503
|
-
* Get loader root.
|
|
504
|
-
* Only applicable if selector is a parent of loader.
|
|
505
|
-
*
|
|
506
|
-
* @deprecated Use a direct selector and `el()` instead.
|
|
507
|
-
*/
|
|
508
|
-
loader(): DefaultCypressChainable;
|
|
509
453
|
wrapper(): DefaultCypressChainable;
|
|
510
454
|
waitText(): DefaultCypressChainable;
|
|
511
455
|
}
|
|
@@ -521,15 +465,7 @@ export declare class FMessageBoxPageObject implements BasePageObject {
|
|
|
521
465
|
* @param selector - the root of the message box, usually `<div class="message-box">...</div>`.
|
|
522
466
|
*/
|
|
523
467
|
constructor(selector: string);
|
|
524
|
-
/**
|
|
525
|
-
* @deprecated Access using `content()` instead. It is not guaranteed that provided heading class is used.
|
|
526
|
-
*/
|
|
527
|
-
title(): DefaultCypressChainable;
|
|
528
468
|
icon(): DefaultCypressChainable;
|
|
529
|
-
/**
|
|
530
|
-
* @deprecated Access using `content()` instead. It is not guaranteed that `p`-tag is used.
|
|
531
|
-
*/
|
|
532
|
-
body(): DefaultCypressChainable;
|
|
533
469
|
content(): DefaultCypressChainable;
|
|
534
470
|
typeOfMessage(): Cypress.Chainable<string>;
|
|
535
471
|
}
|
|
@@ -607,12 +543,6 @@ export declare class FNavigationMenuPageobject implements BasePageObject {
|
|
|
607
543
|
* Returns `IPopupMenu` page object.
|
|
608
544
|
*/
|
|
609
545
|
popupMenu(): IPopupMenuPageObject;
|
|
610
|
-
/**
|
|
611
|
-
* Returns `IMenu` page object.
|
|
612
|
-
*
|
|
613
|
-
* @deprecated `IMenuPageObject` is deprecated and equivalent methods are available for `FNavigationMenuPageobject`.
|
|
614
|
-
*/
|
|
615
|
-
menu(): IMenuPageObject;
|
|
616
546
|
}
|
|
617
547
|
|
|
618
548
|
/**
|
|
@@ -646,31 +576,60 @@ export declare class FOutputFieldPageobject implements BasePageObject {
|
|
|
646
576
|
*/
|
|
647
577
|
export declare class FPageHeaderPageobject implements BasePageObject {
|
|
648
578
|
selector: string;
|
|
649
|
-
el: () => DefaultCypressChainable;
|
|
650
579
|
/**
|
|
651
580
|
* @param selector - the root of the page header, usually `div.page-header__root`.
|
|
652
581
|
*/
|
|
653
|
-
constructor(selector
|
|
582
|
+
constructor(selector?: string);
|
|
583
|
+
/**
|
|
584
|
+
* Get root element.
|
|
585
|
+
*/
|
|
586
|
+
el(): DefaultCypressChainable;
|
|
587
|
+
/**
|
|
588
|
+
* Get skiplink anchor element and wrapper for `skip-link-text` slot.
|
|
589
|
+
*/
|
|
654
590
|
skipLink(): DefaultCypressChainable;
|
|
591
|
+
/**
|
|
592
|
+
* Get wrapper element for `default` slot.
|
|
593
|
+
*/
|
|
655
594
|
applicationName(): DefaultCypressChainable;
|
|
595
|
+
/**
|
|
596
|
+
* Get wrapper element for `right` slot.
|
|
597
|
+
*/
|
|
656
598
|
rightSlot(): DefaultCypressChainable;
|
|
599
|
+
/**
|
|
600
|
+
* Get wrapper element for `logo` slot.
|
|
601
|
+
*/
|
|
657
602
|
logoSlot(): DefaultCypressChainable;
|
|
658
|
-
logoRouterLink(): DefaultCypressChainable;
|
|
659
603
|
}
|
|
660
604
|
|
|
661
605
|
/**
|
|
606
|
+
* Cypress Pageobject representing the `FProgressbar` component.
|
|
607
|
+
*
|
|
662
608
|
* @public
|
|
663
609
|
*/
|
|
664
610
|
export declare class FProgressbarPageObject implements BasePageObject {
|
|
665
|
-
selector: string;
|
|
666
|
-
el: () => DefaultCypressChainable;
|
|
667
|
-
progressMeter: () => DefaultCypressChainable;
|
|
611
|
+
readonly selector: string;
|
|
668
612
|
/**
|
|
669
613
|
* @param selector - the root of the static field, usually `<div class="progress">...</div>`.
|
|
670
614
|
*/
|
|
671
|
-
constructor(selector
|
|
672
|
-
|
|
673
|
-
|
|
615
|
+
constructor(selector?: string);
|
|
616
|
+
/**
|
|
617
|
+
* Get the element itself.
|
|
618
|
+
*/
|
|
619
|
+
el(): DefaultCypressChainable;
|
|
620
|
+
/* Excluded from this release type: progressMeter */
|
|
621
|
+
/**
|
|
622
|
+
* Returns progressbar status, one of:
|
|
623
|
+
*
|
|
624
|
+
* - `"pending"` - for value `0`.
|
|
625
|
+
* - `"inprogress"` - for values between `1` and `99`.
|
|
626
|
+
* - `"finished"` - for value `100`.
|
|
627
|
+
*/
|
|
628
|
+
progressStatus(): Cypress.Chainable<ProgressbarStatus>;
|
|
629
|
+
/**
|
|
630
|
+
* Get the current value of the progressbar.
|
|
631
|
+
*/
|
|
632
|
+
value(): Cypress.Chainable<number>;
|
|
674
633
|
}
|
|
675
634
|
|
|
676
635
|
/**
|
|
@@ -686,10 +645,6 @@ declare class FRadioFieldPageObject implements BasePageObject {
|
|
|
686
645
|
constructor(selector: string, index?: number);
|
|
687
646
|
radioButton(): Cypress.Chainable<JQuery<HTMLInputElement>>;
|
|
688
647
|
label(): DefaultCypressChainable;
|
|
689
|
-
/**
|
|
690
|
-
* @deprecated Use assertion `label().should('trimmedText', '...')` instead.
|
|
691
|
-
*/
|
|
692
|
-
trimmedText(): Cypress.Chainable<string>;
|
|
693
648
|
select(): DefaultCypressChainable;
|
|
694
649
|
details(): DefaultCypressChainable;
|
|
695
650
|
isSelected(): Cypress.Chainable<boolean>;
|
|
@@ -731,8 +686,11 @@ export declare class FSelectFieldPageObject implements BasePageObject {
|
|
|
731
686
|
arrowIcon(): DefaultCypressChainable;
|
|
732
687
|
numberOfOptions(): Cypress.Chainable<number>;
|
|
733
688
|
listOfOptions(): Cypress.Chainable<string[]>;
|
|
689
|
+
/**
|
|
690
|
+
* Get the currently selected `<option>` element.
|
|
691
|
+
*/
|
|
692
|
+
selectedOption(): Cypress.Chainable<JQuery<HTMLOptionElement>>;
|
|
734
693
|
selectedValue(): Cypress.Chainable<string>;
|
|
735
|
-
trimmedText(): Cypress.Chainable<string>;
|
|
736
694
|
}
|
|
737
695
|
|
|
738
696
|
/**
|
|
@@ -821,15 +779,6 @@ export declare class FTooltipPageObject implements BasePageObject {
|
|
|
821
779
|
header(): DefaultCypressChainable;
|
|
822
780
|
body(): DefaultCypressChainable;
|
|
823
781
|
closeButton(): DefaultCypressChainable;
|
|
824
|
-
/**
|
|
825
|
-
* @deprecated Use `closeButton()`, `header()`, or `body()` instead.
|
|
826
|
-
*/
|
|
827
|
-
content(): {
|
|
828
|
-
closeButtonTop: () => DefaultCypressChainable;
|
|
829
|
-
heading: () => DefaultCypressChainable;
|
|
830
|
-
brodtext: () => DefaultCypressChainable;
|
|
831
|
-
closeButtonBottom: () => DefaultCypressChainable;
|
|
832
|
-
};
|
|
833
782
|
}
|
|
834
783
|
|
|
835
784
|
/**
|
|
@@ -955,51 +904,6 @@ export declare class ICalendarNavbarPageObject implements BasePageObject {
|
|
|
955
904
|
nextButton(): DefaultCypressChainable;
|
|
956
905
|
}
|
|
957
906
|
|
|
958
|
-
/**
|
|
959
|
-
* pageobject for the removed IMenu component.
|
|
960
|
-
*
|
|
961
|
-
* @deprecated `IMenuPageObject` is deprecated and equivalent methods are available for `FNavigationMenuPageobject`.
|
|
962
|
-
* @public
|
|
963
|
-
*/
|
|
964
|
-
export declare class IMenuPageObject implements BasePageObject {
|
|
965
|
-
selector: string;
|
|
966
|
-
/**
|
|
967
|
-
* @param selector - the root of the IMenu, usually `<nav class="imenu">...</nav>`.
|
|
968
|
-
*/
|
|
969
|
-
constructor(selector?: string);
|
|
970
|
-
el(): DefaultCypressChainable;
|
|
971
|
-
/**
|
|
972
|
-
* Get all visible items in the IMenu, including popup item.
|
|
973
|
-
*
|
|
974
|
-
* @deprecated Use `FNavigationMenuPageobject.items()` instead.
|
|
975
|
-
* @returns All visible items.
|
|
976
|
-
*/
|
|
977
|
-
items(): DefaultCypressChainable;
|
|
978
|
-
/**
|
|
979
|
-
* Get the visible item at position index in the IMenu, including popup item.
|
|
980
|
-
*
|
|
981
|
-
* @deprecated Use `FNavigationMenuPageobject.item()` instead.
|
|
982
|
-
* @param index - the position index in the item array.
|
|
983
|
-
* @returns Menu item with given index.
|
|
984
|
-
*/
|
|
985
|
-
item(index: number): DefaultCypressChainable;
|
|
986
|
-
/**
|
|
987
|
-
* Get link for visible item at index, including popup item.
|
|
988
|
-
*
|
|
989
|
-
* @deprecated Use `FNavigationMenuPageobject.itemLink()` instead.
|
|
990
|
-
* @param index - the position index in the item array.
|
|
991
|
-
* @returns link with given index.
|
|
992
|
-
*/
|
|
993
|
-
getItemLink(index: number): DefaultCypressChainable;
|
|
994
|
-
/**
|
|
995
|
-
* Get currently selected menu item.
|
|
996
|
-
*
|
|
997
|
-
* @deprecated Use `FNavigationMenuPageobject.selectedItem()` instead.
|
|
998
|
-
* @returns Currently selected item.
|
|
999
|
-
*/
|
|
1000
|
-
getSelectedItem(): DefaultCypressChainable;
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
907
|
/**
|
|
1004
908
|
* @public
|
|
1005
909
|
*/
|
|
@@ -1065,6 +969,11 @@ export declare class IPopupPageObject implements BasePageObject {
|
|
|
1065
969
|
el(): DefaultCypressChainable;
|
|
1066
970
|
}
|
|
1067
971
|
|
|
972
|
+
/**
|
|
973
|
+
* @public
|
|
974
|
+
*/
|
|
975
|
+
export declare type ProgressbarStatus = "pending" | "inprogress" | "finished";
|
|
976
|
+
|
|
1068
977
|
/**
|
|
1069
978
|
* Status of the FWizardStep -
|
|
1070
979
|
* done, open or pending
|