@skyux/tiles 11.36.2 → 11.38.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/documentation.json +5611 -603
- package/esm2022/testing/modules/tiles/tile-content-harness.mjs +31 -0
- package/esm2022/testing/modules/tiles/tile-content-section-harness-filters.mjs +2 -0
- package/esm2022/testing/modules/tiles/tile-content-section-harness.mjs +18 -0
- package/esm2022/testing/modules/tiles/tile-dashboard-harness-filters.mjs +2 -0
- package/esm2022/testing/modules/tiles/tile-dashboard-harness.mjs +45 -0
- package/esm2022/testing/modules/tiles/tile-harness-filters.mjs +2 -0
- package/esm2022/testing/modules/tiles/tile-harness.mjs +109 -0
- package/esm2022/testing/public-api.mjs +5 -0
- package/esm2022/testing/skyux-tiles-testing.mjs +5 -0
- package/fesm2022/skyux-tiles-testing.mjs +204 -0
- package/fesm2022/skyux-tiles-testing.mjs.map +1 -0
- package/package.json +15 -8
- package/testing/index.d.ts +5 -0
- package/testing/modules/tiles/tile-content-harness.d.ts +20 -0
- package/testing/modules/tiles/tile-content-section-harness-filters.d.ts +6 -0
- package/testing/modules/tiles/tile-content-section-harness.d.ts +17 -0
- package/testing/modules/tiles/tile-dashboard-harness-filters.d.ts +6 -0
- package/testing/modules/tiles/tile-dashboard-harness.d.ts +31 -0
- package/testing/modules/tiles/tile-harness-filters.d.ts +10 -0
- package/testing/modules/tiles/tile-harness.d.ts +59 -0
- package/testing/public-api.d.ts +7 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SkyHarnessFilters } from '@skyux/core/testing';
|
|
2
|
+
/**
|
|
3
|
+
* A set of criteria that can be used to filter a list of `SkyTileHarness` instances.
|
|
4
|
+
*/
|
|
5
|
+
export interface SkyTileHarnessFilters extends SkyHarnessFilters {
|
|
6
|
+
/**
|
|
7
|
+
* Only find instances whose title matches the given value.
|
|
8
|
+
*/
|
|
9
|
+
titleText?: string | RegExp;
|
|
10
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
+
import { SkyTileContentHarness } from './tile-content-harness';
|
|
4
|
+
import { SkyTileHarnessFilters } from './tile-harness-filters';
|
|
5
|
+
/**
|
|
6
|
+
* Harness to interact with a tile component in tests.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SkyTileHarness extends SkyComponentHarness {
|
|
9
|
+
#private;
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
static hostSelector: string;
|
|
14
|
+
/**
|
|
15
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
16
|
+
* `SkyTileHarness` that meets certain criteria.
|
|
17
|
+
*/
|
|
18
|
+
static with(filters: SkyTileHarnessFilters): HarnessPredicate<SkyTileHarness>;
|
|
19
|
+
/**
|
|
20
|
+
* Clicks the help inline button.
|
|
21
|
+
*/
|
|
22
|
+
clickHelpInline(): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Clicks the settings button.
|
|
25
|
+
*/
|
|
26
|
+
clickSettingsButton(): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Collapses the tile, or does nothing if already collapsed.
|
|
29
|
+
*/
|
|
30
|
+
collapse(): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Expands the tile, or does nothing if already expanded.
|
|
33
|
+
*/
|
|
34
|
+
expand(): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Gets the help popover content.
|
|
37
|
+
*/
|
|
38
|
+
getHelpPopoverContent(): Promise<string | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* Gets the help popover title.
|
|
41
|
+
*/
|
|
42
|
+
getHelpPopoverTitle(): Promise<string | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* Gets a harness for the tile content.
|
|
45
|
+
*/
|
|
46
|
+
getContent(): Promise<SkyTileContentHarness>;
|
|
47
|
+
/**
|
|
48
|
+
* Gets the tile summary text.
|
|
49
|
+
*/
|
|
50
|
+
getSummaryText(): Promise<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Gets the tile title text.
|
|
53
|
+
*/
|
|
54
|
+
getTitleText(): Promise<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the tile is expanded.
|
|
57
|
+
*/
|
|
58
|
+
isExpanded(): Promise<boolean>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { SkyTileContentHarness } from './modules/tiles/tile-content-harness';
|
|
2
|
+
export { SkyTileContentSectionHarness } from './modules/tiles/tile-content-section-harness';
|
|
3
|
+
export { SkyTileContentSectionHarnessFilters } from './modules/tiles/tile-content-section-harness-filters';
|
|
4
|
+
export { SkyTileDashboardHarness } from './modules/tiles/tile-dashboard-harness';
|
|
5
|
+
export { SkyTileDashboardHarnessFilters } from './modules/tiles/tile-dashboard-harness-filters';
|
|
6
|
+
export { SkyTileHarness } from './modules/tiles/tile-harness';
|
|
7
|
+
export { SkyTileHarnessFilters } from './modules/tiles/tile-harness-filters';
|