@baloise/ds-testing 17.4.1 → 18.0.0-nightly.20250211
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/add-custom-commands.esm.js +1 -1
- package/add-override-commands.esm.js +541 -3
- package/bal-input-stepper.command.esm.js +165 -165
- package/helpers.esm.js +43 -42
- package/index.esm.js +2 -800
- package/package.json +3 -4
- package/selectors.esm.js +1 -1
- package/selectors.esm2.js +179 -0
- package/src/add-custom-commands.d.ts +34 -34
- package/src/add-override-commands.d.ts +9 -9
- package/src/commands/custom/bal-accordion.command.d.ts +1 -1
- package/src/commands/custom/bal-accordion.types.d.ts +15 -15
- package/src/commands/custom/bal-field.command.d.ts +1 -1
- package/src/commands/custom/bal-field.types.d.ts +11 -11
- package/src/commands/custom/bal-hint.command.d.ts +1 -1
- package/src/commands/custom/bal-hint.types.d.ts +15 -15
- package/src/commands/custom/bal-input-stepper.command.d.ts +1 -1
- package/src/commands/custom/bal-input-stepper.types.d.ts +15 -15
- package/src/commands/custom/bal-modal.command.d.ts +1 -1
- package/src/commands/custom/bal-modal.types.d.ts +24 -24
- package/src/commands/custom/bal-pagination.command.d.ts +1 -1
- package/src/commands/custom/bal-pagination.types.d.ts +23 -23
- package/src/commands/custom/bal-popover.command.d.ts +1 -1
- package/src/commands/custom/bal-popover.types.d.ts +27 -27
- package/src/commands/custom/bal-popup.command.d.ts +1 -1
- package/src/commands/custom/bal-popup.types.d.ts +15 -15
- package/src/commands/custom/bal-select.command.d.ts +1 -1
- package/src/commands/custom/bal-select.types.d.ts +19 -19
- package/src/commands/custom/bal-snackbar.command.d.ts +1 -1
- package/src/commands/custom/bal-snackbar.types.d.ts +11 -11
- package/src/commands/custom/bal-steps.command.d.ts +1 -1
- package/src/commands/custom/bal-steps.types.d.ts +27 -27
- package/src/commands/custom/bal-tabs.command.d.ts +1 -1
- package/src/commands/custom/bal-tabs.types.d.ts +31 -31
- package/src/commands/custom/bal-toast.command.d.ts +1 -1
- package/src/commands/custom/bal-toast.types.d.ts +11 -11
- package/src/commands/custom/component.command.d.ts +1 -1
- package/src/commands/custom/component.types.d.ts +47 -47
- package/src/commands/custom/get.command.d.ts +1 -1
- package/src/commands/custom/get.types.d.ts +43 -43
- package/src/commands/custom/platform.command.d.ts +1 -1
- package/src/commands/custom/platform.types.d.ts +11 -11
- package/src/commands/custom/visit.command.d.ts +1 -1
- package/src/commands/custom/visit.types.d.ts +10 -10
- package/src/commands/helpers.d.ts +48 -48
- package/src/commands/overrides/blur.command.d.ts +1 -1
- package/src/commands/overrides/check.command.d.ts +1 -1
- package/src/commands/overrides/clear.command.d.ts +1 -1
- package/src/commands/overrides/click.command.d.ts +1 -1
- package/src/commands/overrides/focus.command.d.ts +1 -1
- package/src/commands/overrides/select.command.d.ts +1 -1
- package/src/commands/overrides/should.command.d.ts +1 -1
- package/src/commands/overrides/type.command.d.ts +1 -1
- package/src/commands/overrides/uncheck.command.d.ts +1 -1
- package/src/index.d.ts +21 -25
- package/src/selectors/index.d.ts +354 -354
- package/src/selectors/selectors.util.d.ts +4 -4
- package/src/selectors.d.ts +1 -1
- package/src/viewports.d.ts +7 -7
- package/index.esm2.js +0 -317
- package/src/legacy/accessors/accordion.accessor.d.ts +0 -29
- package/src/legacy/accessors/button.accessor.d.ts +0 -23
- package/src/legacy/accessors/checkbox.accessor.d.ts +0 -25
- package/src/legacy/accessors/drop-down.accessor.d.ts +0 -31
- package/src/legacy/accessors/error.accessor.d.ts +0 -25
- package/src/legacy/accessors/icon-accessor.d.ts +0 -23
- package/src/legacy/accessors/input.accessor.d.ts +0 -30
- package/src/legacy/accessors/link.accessor.d.ts +0 -39
- package/src/legacy/accessors/list.accessor.d.ts +0 -23
- package/src/legacy/accessors/mixins/andable.d.ts +0 -5
- package/src/legacy/accessors/mixins/attachable.d.ts +0 -6
- package/src/legacy/accessors/mixins/attributable.d.ts +0 -7
- package/src/legacy/accessors/mixins/blurable.d.ts +0 -6
- package/src/legacy/accessors/mixins/checkable.d.ts +0 -7
- package/src/legacy/accessors/mixins/clearable.d.ts +0 -6
- package/src/legacy/accessors/mixins/clickable.d.ts +0 -7
- package/src/legacy/accessors/mixins/containable.d.ts +0 -5
- package/src/legacy/accessors/mixins/disableable.d.ts +0 -5
- package/src/legacy/accessors/mixins/eachable.d.ts +0 -5
- package/src/legacy/accessors/mixins/existable.d.ts +0 -5
- package/src/legacy/accessors/mixins/findable.d.ts +0 -5
- package/src/legacy/accessors/mixins/invokable.d.ts +0 -5
- package/src/legacy/accessors/mixins/lengthable.d.ts +0 -5
- package/src/legacy/accessors/mixins/mixins.d.ts +0 -12
- package/src/legacy/accessors/mixins/nthSelectable.d.ts +0 -7
- package/src/legacy/accessors/mixins/selectable.d.ts +0 -4
- package/src/legacy/accessors/mixins/shouldable.d.ts +0 -5
- package/src/legacy/accessors/mixins/thenable.d.ts +0 -5
- package/src/legacy/accessors/mixins/typeable.d.ts +0 -6
- package/src/legacy/accessors/mixins/urlable.d.ts +0 -6
- package/src/legacy/accessors/mixins/visible.d.ts +0 -5
- package/src/legacy/accessors/mixins/waitable.d.ts +0 -5
- package/src/legacy/accessors/multi-select-button.accessor.d.ts +0 -24
- package/src/legacy/accessors/navigation.accessor.d.ts +0 -22
- package/src/legacy/accessors/radio.accessor.d.ts +0 -23
- package/src/legacy/accessors/select-button.accessor.d.ts +0 -24
- package/src/legacy/accessors/table.accessor.d.ts +0 -27
- package/src/legacy/accessors/tabs.accessor.d.ts +0 -26
- package/src/legacy/accessors/text.accessor.d.ts +0 -23
- package/src/legacy/accessors/tile.accessor.d.ts +0 -27
- package/src/legacy/accessors/toast.accessor.d.ts +0 -24
- package/src/legacy/accessors/tooltip.accessor.d.ts +0 -23
- package/src/legacy/accessors/typeahead.accessor.d.ts +0 -26
- package/src/legacy/index.d.ts +0 -43
- package/type.command.esm.js +0 -541
|
@@ -1,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
|
|
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
|
|
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 {};
|