@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.
Files changed (105) hide show
  1. package/add-custom-commands.esm.js +1 -1
  2. package/add-override-commands.esm.js +541 -3
  3. package/bal-input-stepper.command.esm.js +165 -165
  4. package/helpers.esm.js +43 -42
  5. package/index.esm.js +2 -800
  6. package/package.json +3 -4
  7. package/selectors.esm.js +1 -1
  8. package/selectors.esm2.js +179 -0
  9. package/src/add-custom-commands.d.ts +34 -34
  10. package/src/add-override-commands.d.ts +9 -9
  11. package/src/commands/custom/bal-accordion.command.d.ts +1 -1
  12. package/src/commands/custom/bal-accordion.types.d.ts +15 -15
  13. package/src/commands/custom/bal-field.command.d.ts +1 -1
  14. package/src/commands/custom/bal-field.types.d.ts +11 -11
  15. package/src/commands/custom/bal-hint.command.d.ts +1 -1
  16. package/src/commands/custom/bal-hint.types.d.ts +15 -15
  17. package/src/commands/custom/bal-input-stepper.command.d.ts +1 -1
  18. package/src/commands/custom/bal-input-stepper.types.d.ts +15 -15
  19. package/src/commands/custom/bal-modal.command.d.ts +1 -1
  20. package/src/commands/custom/bal-modal.types.d.ts +24 -24
  21. package/src/commands/custom/bal-pagination.command.d.ts +1 -1
  22. package/src/commands/custom/bal-pagination.types.d.ts +23 -23
  23. package/src/commands/custom/bal-popover.command.d.ts +1 -1
  24. package/src/commands/custom/bal-popover.types.d.ts +27 -27
  25. package/src/commands/custom/bal-popup.command.d.ts +1 -1
  26. package/src/commands/custom/bal-popup.types.d.ts +15 -15
  27. package/src/commands/custom/bal-select.command.d.ts +1 -1
  28. package/src/commands/custom/bal-select.types.d.ts +19 -19
  29. package/src/commands/custom/bal-snackbar.command.d.ts +1 -1
  30. package/src/commands/custom/bal-snackbar.types.d.ts +11 -11
  31. package/src/commands/custom/bal-steps.command.d.ts +1 -1
  32. package/src/commands/custom/bal-steps.types.d.ts +27 -27
  33. package/src/commands/custom/bal-tabs.command.d.ts +1 -1
  34. package/src/commands/custom/bal-tabs.types.d.ts +31 -31
  35. package/src/commands/custom/bal-toast.command.d.ts +1 -1
  36. package/src/commands/custom/bal-toast.types.d.ts +11 -11
  37. package/src/commands/custom/component.command.d.ts +1 -1
  38. package/src/commands/custom/component.types.d.ts +47 -47
  39. package/src/commands/custom/get.command.d.ts +1 -1
  40. package/src/commands/custom/get.types.d.ts +43 -43
  41. package/src/commands/custom/platform.command.d.ts +1 -1
  42. package/src/commands/custom/platform.types.d.ts +11 -11
  43. package/src/commands/custom/visit.command.d.ts +1 -1
  44. package/src/commands/custom/visit.types.d.ts +10 -10
  45. package/src/commands/helpers.d.ts +48 -48
  46. package/src/commands/overrides/blur.command.d.ts +1 -1
  47. package/src/commands/overrides/check.command.d.ts +1 -1
  48. package/src/commands/overrides/clear.command.d.ts +1 -1
  49. package/src/commands/overrides/click.command.d.ts +1 -1
  50. package/src/commands/overrides/focus.command.d.ts +1 -1
  51. package/src/commands/overrides/select.command.d.ts +1 -1
  52. package/src/commands/overrides/should.command.d.ts +1 -1
  53. package/src/commands/overrides/type.command.d.ts +1 -1
  54. package/src/commands/overrides/uncheck.command.d.ts +1 -1
  55. package/src/index.d.ts +21 -25
  56. package/src/selectors/index.d.ts +354 -354
  57. package/src/selectors/selectors.util.d.ts +4 -4
  58. package/src/selectors.d.ts +1 -1
  59. package/src/viewports.d.ts +7 -7
  60. package/index.esm2.js +0 -317
  61. package/src/legacy/accessors/accordion.accessor.d.ts +0 -29
  62. package/src/legacy/accessors/button.accessor.d.ts +0 -23
  63. package/src/legacy/accessors/checkbox.accessor.d.ts +0 -25
  64. package/src/legacy/accessors/drop-down.accessor.d.ts +0 -31
  65. package/src/legacy/accessors/error.accessor.d.ts +0 -25
  66. package/src/legacy/accessors/icon-accessor.d.ts +0 -23
  67. package/src/legacy/accessors/input.accessor.d.ts +0 -30
  68. package/src/legacy/accessors/link.accessor.d.ts +0 -39
  69. package/src/legacy/accessors/list.accessor.d.ts +0 -23
  70. package/src/legacy/accessors/mixins/andable.d.ts +0 -5
  71. package/src/legacy/accessors/mixins/attachable.d.ts +0 -6
  72. package/src/legacy/accessors/mixins/attributable.d.ts +0 -7
  73. package/src/legacy/accessors/mixins/blurable.d.ts +0 -6
  74. package/src/legacy/accessors/mixins/checkable.d.ts +0 -7
  75. package/src/legacy/accessors/mixins/clearable.d.ts +0 -6
  76. package/src/legacy/accessors/mixins/clickable.d.ts +0 -7
  77. package/src/legacy/accessors/mixins/containable.d.ts +0 -5
  78. package/src/legacy/accessors/mixins/disableable.d.ts +0 -5
  79. package/src/legacy/accessors/mixins/eachable.d.ts +0 -5
  80. package/src/legacy/accessors/mixins/existable.d.ts +0 -5
  81. package/src/legacy/accessors/mixins/findable.d.ts +0 -5
  82. package/src/legacy/accessors/mixins/invokable.d.ts +0 -5
  83. package/src/legacy/accessors/mixins/lengthable.d.ts +0 -5
  84. package/src/legacy/accessors/mixins/mixins.d.ts +0 -12
  85. package/src/legacy/accessors/mixins/nthSelectable.d.ts +0 -7
  86. package/src/legacy/accessors/mixins/selectable.d.ts +0 -4
  87. package/src/legacy/accessors/mixins/shouldable.d.ts +0 -5
  88. package/src/legacy/accessors/mixins/thenable.d.ts +0 -5
  89. package/src/legacy/accessors/mixins/typeable.d.ts +0 -6
  90. package/src/legacy/accessors/mixins/urlable.d.ts +0 -6
  91. package/src/legacy/accessors/mixins/visible.d.ts +0 -5
  92. package/src/legacy/accessors/mixins/waitable.d.ts +0 -5
  93. package/src/legacy/accessors/multi-select-button.accessor.d.ts +0 -24
  94. package/src/legacy/accessors/navigation.accessor.d.ts +0 -22
  95. package/src/legacy/accessors/radio.accessor.d.ts +0 -23
  96. package/src/legacy/accessors/select-button.accessor.d.ts +0 -24
  97. package/src/legacy/accessors/table.accessor.d.ts +0 -27
  98. package/src/legacy/accessors/tabs.accessor.d.ts +0 -26
  99. package/src/legacy/accessors/text.accessor.d.ts +0 -23
  100. package/src/legacy/accessors/tile.accessor.d.ts +0 -27
  101. package/src/legacy/accessors/toast.accessor.d.ts +0 -24
  102. package/src/legacy/accessors/tooltip.accessor.d.ts +0 -23
  103. package/src/legacy/accessors/typeahead.accessor.d.ts +0 -26
  104. package/src/legacy/index.d.ts +0 -43
  105. package/type.command.esm.js +0 -541
@@ -1,19 +1,19 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- declare namespace Cypress {
5
- interface Chainable {
6
- /**
7
- * Returns the select options.
8
- */
9
- balSelectFindOptions(options?: Partial<Loggable>): Chainable<JQuery>;
10
- /**
11
- * Returns the closable select chips (only with multiselect).
12
- */
13
- balSelectFindChips(options?: Partial<Loggable>): Chainable<JQuery>;
14
- /**
15
- * Asserts that the select has the given options.
16
- */
17
- balSelectShouldHaveOptions(labels: string[], dataType?: 'label' | 'value', options?: Partial<Loggable>): Chainable<JQuery>;
18
- }
19
- }
1
+ /// <reference types="cypress" />
2
+ /// <reference types="cypress" />
3
+ /// <reference types="cypress" />
4
+ declare namespace Cypress {
5
+ interface Chainable {
6
+ /**
7
+ * Returns the select options.
8
+ */
9
+ balSelectFindOptions(options?: Partial<Loggable>): Chainable<JQuery>;
10
+ /**
11
+ * Returns the closable select chips (only with multiselect).
12
+ */
13
+ balSelectFindChips(options?: Partial<Loggable>): Chainable<JQuery>;
14
+ /**
15
+ * Asserts that the select has the given options.
16
+ */
17
+ balSelectShouldHaveOptions(labels: string[], dataType?: 'label' | 'value', options?: Partial<Loggable>): Chainable<JQuery>;
18
+ }
19
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,11 +1,11 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- declare namespace Cypress {
5
- interface Chainable {
6
- /**
7
- * Returns the visible snackbars.
8
- */
9
- balSnackbarFind(options?: Partial<Loggable>): Chainable<JQuery>;
10
- }
11
- }
1
+ /// <reference types="cypress" />
2
+ /// <reference types="cypress" />
3
+ /// <reference types="cypress" />
4
+ declare namespace Cypress {
5
+ interface Chainable {
6
+ /**
7
+ * Returns the visible snackbars.
8
+ */
9
+ balSnackbarFind(options?: Partial<Loggable>): Chainable<JQuery>;
10
+ }
11
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,27 +1,27 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- declare namespace Cypress {
5
- interface Chainable {
6
- /**
7
- * Returns the tab items.
8
- */
9
- balStepsFindItems(options?: Partial<Loggable>): Chainable<JQuery>;
10
- /**
11
- * Returns the label of the tab item.
12
- */
13
- balStepsFindLabel(options?: Partial<Loggable>): Chainable<JQuery>;
14
- /**
15
- * Assert that the tab has the given item.
16
- */
17
- balStepsShouldHaveItems(labels: string[], dataType?: 'label' | 'value', options?: Partial<Loggable>): Chainable<JQuery>;
18
- /**
19
- * Assert that the tab item has the given state.
20
- */
21
- balStepsItemShouldHaveState(state: 'done' | 'failed' | 'active' | 'disabled', options?: Partial<Loggable>): Chainable<JQuery>;
22
- /**
23
- * Assert that the tab item has not the given state.
24
- */
25
- balStepsItemShouldNotHaveState(state: 'done' | 'failed' | 'active' | 'disabled', options?: Partial<Loggable>): Chainable<JQuery>;
26
- }
27
- }
1
+ /// <reference types="cypress" />
2
+ /// <reference types="cypress" />
3
+ /// <reference types="cypress" />
4
+ declare namespace Cypress {
5
+ interface Chainable {
6
+ /**
7
+ * Returns the tab items.
8
+ */
9
+ balStepsFindItems(options?: Partial<Loggable>): Chainable<JQuery>;
10
+ /**
11
+ * Returns the label of the tab item.
12
+ */
13
+ balStepsFindLabel(options?: Partial<Loggable>): Chainable<JQuery>;
14
+ /**
15
+ * Assert that the tab has the given item.
16
+ */
17
+ balStepsShouldHaveItems(labels: string[], dataType?: 'label' | 'value', options?: Partial<Loggable>): Chainable<JQuery>;
18
+ /**
19
+ * Assert that the tab item has the given state.
20
+ */
21
+ balStepsItemShouldHaveState(state: 'done' | 'failed' | 'active' | 'disabled', options?: Partial<Loggable>): Chainable<JQuery>;
22
+ /**
23
+ * Assert that the tab item has not the given state.
24
+ */
25
+ balStepsItemShouldNotHaveState(state: 'done' | 'failed' | 'active' | 'disabled', options?: Partial<Loggable>): Chainable<JQuery>;
26
+ }
27
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,31 +1,31 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- declare namespace Cypress {
5
- interface Chainable {
6
- /**
7
- * Returns the action button element.
8
- */
9
- balTabsFindActionButton(options?: Partial<Loggable>): Chainable<JQuery>;
10
- /**
11
- * Returns the tab items.
12
- */
13
- balTabsFindItems(options?: Partial<Loggable>): Chainable<JQuery>;
14
- /**
15
- * Returns the label of the tab item.
16
- */
17
- balTabsFindLabel(options?: Partial<Loggable>): Chainable<JQuery>;
18
- /**
19
- * Assert that the tab has the given item.
20
- */
21
- balTabsShouldHaveItems(labels: string[], dataType?: 'label' | 'value', options?: Partial<Loggable>): Chainable<JQuery>;
22
- /**
23
- * Assert that the tab item has the given state.
24
- */
25
- balTabItemShouldHaveState(state: 'done' | 'failed' | 'active' | 'disabled', options?: Partial<Loggable>): Chainable<JQuery>;
26
- /**
27
- * Assert that the tab item is active or not.
28
- */
29
- balTabItemShouldBeActive(active?: boolean, options?: Partial<Loggable>): Chainable<JQuery>;
30
- }
31
- }
1
+ /// <reference types="cypress" />
2
+ /// <reference types="cypress" />
3
+ /// <reference types="cypress" />
4
+ declare namespace Cypress {
5
+ interface Chainable {
6
+ /**
7
+ * Returns the action button element.
8
+ */
9
+ balTabsFindActionButton(options?: Partial<Loggable>): Chainable<JQuery>;
10
+ /**
11
+ * Returns the tab items.
12
+ */
13
+ balTabsFindItems(options?: Partial<Loggable>): Chainable<JQuery>;
14
+ /**
15
+ * Returns the label of the tab item.
16
+ */
17
+ balTabsFindLabel(options?: Partial<Loggable>): Chainable<JQuery>;
18
+ /**
19
+ * Assert that the tab has the given item.
20
+ */
21
+ balTabsShouldHaveItems(labels: string[], dataType?: 'label' | 'value', options?: Partial<Loggable>): Chainable<JQuery>;
22
+ /**
23
+ * Assert that the tab item has the given state.
24
+ */
25
+ balTabItemShouldHaveState(state: 'done' | 'failed' | 'active' | 'disabled', options?: Partial<Loggable>): Chainable<JQuery>;
26
+ /**
27
+ * Assert that the tab item is active or not.
28
+ */
29
+ balTabItemShouldBeActive(active?: boolean, options?: Partial<Loggable>): Chainable<JQuery>;
30
+ }
31
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,11 +1,11 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- declare namespace Cypress {
5
- interface Chainable {
6
- /**
7
- * Returns the visible toasts.
8
- */
9
- balToastFind(options?: Partial<Loggable>): Chainable<JQuery>;
10
- }
11
- }
1
+ /// <reference types="cypress" />
2
+ /// <reference types="cypress" />
3
+ /// <reference types="cypress" />
4
+ declare namespace Cypress {
5
+ interface Chainable {
6
+ /**
7
+ * Returns the visible toasts.
8
+ */
9
+ balToastFind(options?: Partial<Loggable>): Chainable<JQuery>;
10
+ }
11
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,47 +1,47 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- declare namespace Cypress {
5
- interface Chainable {
6
- /**
7
- * Disabled all animations for the Design System components.
8
- */
9
- disableAnimation(): Chainable<JQuery>;
10
- /**
11
- * Disabled all logs for the Design System components.
12
- */
13
- disableLogger(): Chainable<JQuery>;
14
- /**
15
- * Waits until the component is fully loaded.
16
- */
17
- waitForComponents(options?: Partial<Loggable & Timeoutable>): Chainable<JQuery>;
18
- /**
19
- * Gets component and waits until it is ready
20
- */
21
- getComponent(selector: string, options?: Partial<Loggable>): Chainable<JQuery>;
22
- /**
23
- * Wraps component and waits until it is ready.
24
- */
25
- wrapComponent(element: any, options?: Partial<Loggable & Timeoutable>): Chainable<JQuery>;
26
- /**
27
- * Waits until the Design System is fully loaded and rendered
28
- */
29
- waitForDesignSystem(): Chainable<JQuery>;
30
- /**
31
- * Waits until the browser goes into idle mode
32
- */
33
- waitAfterLastCallback(): Chainable<JQuery>;
34
- /**
35
- * Waits until the browser goes into idle mode
36
- */
37
- waitAfterIdleCallback(): Chainable<JQuery>;
38
- /**
39
- * Waits until the browser finished rendering
40
- */
41
- waitAfterFramePaint(): Chainable<JQuery>;
42
- /**
43
- * Waits until the browser finished rendering
44
- */
45
- waitForBrowser(): Chainable<JQuery>;
46
- }
47
- }
1
+ /// <reference types="cypress" />
2
+ /// <reference types="cypress" />
3
+ /// <reference types="cypress" />
4
+ declare namespace Cypress {
5
+ interface Chainable {
6
+ /**
7
+ * Disabled all animations for the Design System components.
8
+ */
9
+ disableAnimation(): Chainable<JQuery>;
10
+ /**
11
+ * Disabled all logs for the Design System components.
12
+ */
13
+ disableLogger(): Chainable<JQuery>;
14
+ /**
15
+ * Waits until the component is fully loaded.
16
+ */
17
+ waitForComponents(options?: Partial<Loggable & Timeoutable>): Chainable<JQuery>;
18
+ /**
19
+ * Gets component and waits until it is ready
20
+ */
21
+ getComponent(selector: string, options?: Partial<Loggable>): Chainable<JQuery>;
22
+ /**
23
+ * Wraps component and waits until it is ready.
24
+ */
25
+ wrapComponent(element: any, options?: Partial<Loggable & Timeoutable>): Chainable<JQuery>;
26
+ /**
27
+ * Waits until the Design System is fully loaded and rendered
28
+ */
29
+ waitForDesignSystem(): Chainable<JQuery>;
30
+ /**
31
+ * Waits until the browser goes into idle mode
32
+ */
33
+ waitAfterLastCallback(): Chainable<JQuery>;
34
+ /**
35
+ * Waits until the browser goes into idle mode
36
+ */
37
+ waitAfterIdleCallback(): Chainable<JQuery>;
38
+ /**
39
+ * Waits until the browser finished rendering
40
+ */
41
+ waitAfterFramePaint(): Chainable<JQuery>;
42
+ /**
43
+ * Waits until the browser finished rendering
44
+ */
45
+ waitForBrowser(): Chainable<JQuery>;
46
+ }
47
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,43 +1,43 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- /// <reference types="cypress" />
4
- declare namespace Cypress {
5
- interface GetByRoleOptions {
6
- name?: string;
7
- hidden?: boolean;
8
- }
9
- interface Chainable {
10
- /**
11
- * Gets the element by data-testid or data-test.
12
- */
13
- getByTestId(testId: string, options?: Partial<Loggable & Timeoutable & Withinable & Shadow>): Chainable<JQuery>;
14
- /**
15
- * Gets the control elements to the given subject
16
- */
17
- getControl(labelText: string, options?: Partial<Loggable & Timeoutable & Withinable & Shadow>): Chainable<void>;
18
- /**
19
- * Gets the elements who describes the subject
20
- */
21
- getDescribingElement(options?: Partial<Loggable & Timeoutable & Withinable & Shadow>): Chainable<void>;
22
- /**
23
- * Asserts if the form element is invalid
24
- */
25
- shouldBeInvalid(options?: Partial<Loggable & Timeoutable & Withinable & Shadow>): Chainable<void>;
26
- /**
27
- * Asserts if the form element is valid
28
- */
29
- shouldBeValid(options?: Partial<Loggable & Timeoutable & Withinable & Shadow>): Chainable<void>;
30
- /**
31
- * Gets a element by the label
32
- */
33
- getByLabelText(labelText: string, options?: Partial<Loggable & Timeoutable & Withinable & Shadow>): Chainable<void>;
34
- /**
35
- * Gets a element by the placeholder
36
- */
37
- getByPlaceholder(placeholder: string, options?: Partial<Loggable & Timeoutable & Withinable & Shadow>): Chainable<JQuery>;
38
- /**
39
- * Gets a element by the role
40
- */
41
- getByRole(role: 'button' | 'label' | 'option' | 'input', options: Partial<GetByRoleOptions & Loggable & Timeoutable & Withinable & Shadow>): Chainable<JQuery>;
42
- }
43
- }
1
+ /// <reference types="cypress" />
2
+ /// <reference types="cypress" />
3
+ /// <reference types="cypress" />
4
+ declare namespace Cypress {
5
+ interface GetByRoleOptions {
6
+ name?: string;
7
+ hidden?: boolean;
8
+ }
9
+ interface Chainable {
10
+ /**
11
+ * Gets the element by data-testid or data-test.
12
+ */
13
+ getByTestId(testId: string, options?: Partial<Loggable & Timeoutable & Withinable & Shadow>): Chainable<JQuery>;
14
+ /**
15
+ * Gets the control elements to the given subject
16
+ */
17
+ getControl(labelText: string, options?: Partial<Loggable & Timeoutable & Withinable & Shadow>): Chainable<void>;
18
+ /**
19
+ * Gets the elements who describes the subject
20
+ */
21
+ getDescribingElement(options?: Partial<Loggable & Timeoutable & Withinable & Shadow>): Chainable<void>;
22
+ /**
23
+ * Asserts if the form element is invalid
24
+ */
25
+ shouldBeInvalid(options?: Partial<Loggable & Timeoutable & Withinable & Shadow>): Chainable<void>;
26
+ /**
27
+ * Asserts if the form element is valid
28
+ */
29
+ shouldBeValid(options?: Partial<Loggable & Timeoutable & Withinable & Shadow>): Chainable<void>;
30
+ /**
31
+ * Gets a element by the label
32
+ */
33
+ getByLabelText(labelText: string, options?: Partial<Loggable & Timeoutable & Withinable & Shadow>): Chainable<void>;
34
+ /**
35
+ * Gets a element by the placeholder
36
+ */
37
+ getByPlaceholder(placeholder: string, options?: Partial<Loggable & Timeoutable & Withinable & Shadow>): Chainable<JQuery>;
38
+ /**
39
+ * Gets a element by the role
40
+ */
41
+ getByRole(role: 'button' | 'label' | 'option' | 'input', options: Partial<GetByRoleOptions & Loggable & Timeoutable & Withinable & Shadow>): Chainable<JQuery>;
42
+ }
43
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,11 +1,11 @@
1
- import { Platforms } from '../helpers';
2
- declare global {
3
- namespace Cypress {
4
- interface Chainable {
5
- /**
6
- * Custom command to set the viewport / platform.
7
- */
8
- platform(platform: Platforms): Chainable<Element>;
9
- }
10
- }
11
- }
1
+ import { Platforms } from '../helpers';
2
+ declare global {
3
+ namespace Cypress {
4
+ interface Chainable {
5
+ /**
6
+ * Custom command to set the viewport / platform.
7
+ */
8
+ platform(platform: Platforms): Chainable<Element>;
9
+ }
10
+ }
11
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,10 +1,10 @@
1
- /// <reference types="cypress" />
2
- declare namespace Cypress {
3
- interface Chainable {
4
- /**
5
- * Open an application with the Design System and waits
6
- * until the Design System has fully loaded.
7
- */
8
- visitBalApp(url: string, options?: Partial<VisitOptions>): Chainable<AUTWindow>;
9
- }
10
- }
1
+ /// <reference types="cypress" />
2
+ declare namespace Cypress {
3
+ interface Chainable {
4
+ /**
5
+ * Open an application with the Design System and waits
6
+ * until the Design System has fully loaded.
7
+ */
8
+ visitBalApp(url: string, options?: Partial<VisitOptions>): Chainable<AUTWindow>;
9
+ }
10
+ }
@@ -1,48 +1,48 @@
1
- /// <reference types="cypress" />
2
- /// <reference types="cypress" />
3
- export declare type Platforms = 'mobile' | 'tablet' | 'touch' | 'desktop' | 'highDefinition' | 'widescreen' | 'fullhd';
4
- export declare const deepReady: (el: any | undefined, full?: boolean) => Promise<void>;
5
- export declare const rIC: (callback: () => void, timeout?: number) => void;
6
- export declare const waitAfterFramePaint: () => Promise<unknown>;
7
- export declare const waitAfterIdleCallback: (timeout?: number) => Promise<unknown>;
8
- export declare const raf: (h: any) => any;
9
- export declare const runHighPrioritizedTask: (callback: (value: unknown) => void) => void;
10
- /**
11
- * Helper fn to identify the element/component
12
- */
13
- export declare type isElementType = (el: Cypress.Chainable<JQuery>) => boolean;
14
- export declare const isElement: (el: Cypress.Chainable<JQuery>, name: string) => boolean;
15
- export declare const hasClass: (el: Cypress.Chainable<JQuery>, name: string) => boolean;
16
- export declare const hasTestId: (el: Cypress.Chainable<JQuery>, testId: string) => boolean;
17
- export declare const isLabel: isElementType;
18
- export declare const isAccordion: isElementType;
19
- export declare const isButton: isElementType;
20
- export declare const isCheckbox: isElementType;
21
- export declare const isNumberInput: isElementType;
22
- export declare const isModal: isElementType;
23
- export declare const isRadioGroup: isElementType;
24
- export declare const isRadio: isElementType;
25
- export declare const isSelect: isElementType;
26
- export declare const isTag: isElementType;
27
- export declare const isTabs: isElementType;
28
- export declare const isSteps: isElementType;
29
- export declare const isDropDown: isElementType;
30
- export declare const isSlider: isElementType;
31
- export declare const isHint: isElementType;
32
- export declare const isTextarea: isElementType;
33
- export declare const isCardTitle: isElementType;
34
- export declare const isHeading: isElementType;
35
- export declare const isText: isElementType;
36
- export declare const isInputStepper: isElementType;
37
- export declare const isInput: isElementType;
38
- export declare const isInputDate: isElementType;
39
- /**
40
- * Executes a command on a child element and wraps back to the main element/component
41
- */
42
- export declare const wrapOptions: (options: any) => any;
43
- export declare const wrapCommand: (displayName: string, element: Cypress.Chainable<JQuery>, message: any, fn: ($el: any) => Cypress.Chainable<JQuery> | void) => (selector: string) => Cypress.Chainable<JQuery<HTMLElement>>;
44
- export declare const shouldLog: (options?: Partial<Cypress.Loggable>) => boolean;
45
- export declare const log: (displayName: string, message: any, $el: any, options?: Partial<Cypress.Loggable>) => any;
46
- export declare const areComponentsReady: ($el: any) => Promise<void[]>;
47
- export declare const testOnPlatforms: (platforms: Platforms[], fn: (platform: Platforms) => Promise<void> | void) => void;
48
- export declare function checkAriaLabel(element: HTMLElement, label: string | undefined | null): boolean;
1
+ /// <reference types="cypress" />
2
+ /// <reference types="cypress" />
3
+ export type Platforms = 'mobile' | 'tablet' | 'touch' | 'desktop' | 'highDefinition' | 'widescreen' | 'fullhd';
4
+ export declare const deepReady: (el: any | undefined, full?: boolean) => Promise<void>;
5
+ export declare const rIC: (callback: () => void, timeout?: number) => void;
6
+ export declare const waitAfterFramePaint: () => Promise<unknown>;
7
+ export declare const waitAfterIdleCallback: (timeout?: number) => Promise<unknown>;
8
+ export declare const raf: (h: any) => any;
9
+ export declare const runHighPrioritizedTask: (callback: (value: unknown) => void) => void;
10
+ /**
11
+ * Helper fn to identify the element/component
12
+ */
13
+ export type isElementType = (el: Cypress.Chainable<JQuery>) => boolean;
14
+ export declare const isElement: (el: Cypress.Chainable<JQuery>, name: string) => boolean;
15
+ export declare const hasClass: (el: Cypress.Chainable<JQuery>, name: string) => boolean;
16
+ export declare const hasTestId: (el: Cypress.Chainable<JQuery>, testId: string) => boolean;
17
+ export declare const isLabel: isElementType;
18
+ export declare const isAccordion: isElementType;
19
+ export declare const isButton: isElementType;
20
+ export declare const isCheckbox: isElementType;
21
+ export declare const isNumberInput: isElementType;
22
+ export declare const isModal: isElementType;
23
+ export declare const isRadioGroup: isElementType;
24
+ export declare const isRadio: isElementType;
25
+ export declare const isSelect: isElementType;
26
+ export declare const isTag: isElementType;
27
+ export declare const isTabs: isElementType;
28
+ export declare const isSteps: isElementType;
29
+ export declare const isDropDown: isElementType;
30
+ export declare const isSlider: isElementType;
31
+ export declare const isHint: isElementType;
32
+ export declare const isTextarea: isElementType;
33
+ export declare const isCardTitle: isElementType;
34
+ export declare const isHeading: isElementType;
35
+ export declare const isText: isElementType;
36
+ export declare const isInputStepper: isElementType;
37
+ export declare const isInput: isElementType;
38
+ export declare const isInputDate: isElementType;
39
+ /**
40
+ * Executes a command on a child element and wraps back to the main element/component
41
+ */
42
+ export declare const wrapOptions: (options: any) => any;
43
+ export declare const wrapCommand: (displayName: string, element: Cypress.Chainable<JQuery>, message: any, fn: ($el: any) => Cypress.Chainable<JQuery> | void) => (selector: string) => Cypress.Chainable<JQuery<HTMLElement>>;
44
+ export declare const shouldLog: (options?: Partial<Cypress.Loggable>) => boolean;
45
+ export declare const log: (displayName: string, message: any, $el: any, options?: Partial<Cypress.Loggable>) => any;
46
+ export declare const areComponentsReady: ($el: any) => Promise<void[]>;
47
+ export declare const testOnPlatforms: (platforms: Platforms[], fn: (platform: Platforms) => Promise<void> | void) => void;
48
+ export declare function checkAriaLabel(element: HTMLElement, label: string | undefined | null): boolean;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};