@skyux/errors 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 +1423 -300
- package/esm2022/lib/modules/error/error.component.mjs +9 -3
- package/esm2022/testing/modules/error/error-action-harness.mjs +11 -0
- package/esm2022/testing/modules/error/error-harness-filters.mjs +2 -0
- package/esm2022/testing/modules/error/error-harness.mjs +88 -0
- package/esm2022/testing/modules/error/error-image-harness.mjs +11 -0
- package/esm2022/testing/public-api.mjs +2 -1
- package/fesm2022/skyux-errors-testing.mjs +107 -2
- package/fesm2022/skyux-errors-testing.mjs.map +1 -1
- package/fesm2022/skyux-errors.mjs +8 -2
- package/fesm2022/skyux-errors.mjs.map +1 -1
- package/lib/modules/error/error.component.d.ts +1 -0
- package/package.json +6 -5
- package/testing/modules/error/error-action-harness.d.ts +10 -0
- package/testing/modules/error/error-harness-filters.d.ts +6 -0
- package/testing/modules/error/error-harness.d.ts +53 -0
- package/testing/modules/error/error-image-harness.d.ts +10 -0
- package/testing/public-api.d.ts +2 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
+
import { SkyErrorType } from '@skyux/errors';
|
|
4
|
+
import { SkyErrorActionHarness } from './error-action-harness';
|
|
5
|
+
import { SkyErrorHarnessFilters } from './error-harness-filters';
|
|
6
|
+
import { SkyErrorImageHarness } from './error-image-harness';
|
|
7
|
+
/**
|
|
8
|
+
* Harness for interacting with an error component in tests.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SkyErrorHarness extends SkyComponentHarness {
|
|
11
|
+
#private;
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
static hostSelector: string;
|
|
16
|
+
/**
|
|
17
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
18
|
+
* `SkyErrorHarness` that meets certain criteria.
|
|
19
|
+
*/
|
|
20
|
+
static with(filters: SkyErrorHarnessFilters): HarnessPredicate<SkyErrorHarness>;
|
|
21
|
+
/**
|
|
22
|
+
* Clicks the action button in the error action.
|
|
23
|
+
*/
|
|
24
|
+
clickActionButton(): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Gets the text of the action button in the error action.
|
|
27
|
+
*/
|
|
28
|
+
getActionButtonText(): Promise<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Gets the description of the error.
|
|
31
|
+
*/
|
|
32
|
+
getDescription(): Promise<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Gets an error action harness.
|
|
35
|
+
*/
|
|
36
|
+
getErrorAction(): Promise<SkyErrorActionHarness>;
|
|
37
|
+
/**
|
|
38
|
+
* Gets an error image harness.
|
|
39
|
+
*/
|
|
40
|
+
getErrorImage(): Promise<SkyErrorImageHarness>;
|
|
41
|
+
/**
|
|
42
|
+
* Gets the error type.
|
|
43
|
+
*/
|
|
44
|
+
getErrorType(): Promise<SkyErrorType | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* Gets the title of the error.
|
|
47
|
+
*/
|
|
48
|
+
getTitle(): Promise<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the error displays an image.
|
|
51
|
+
*/
|
|
52
|
+
hasImage(): Promise<boolean>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SkyQueryableComponentHarness } from '@skyux/core/testing';
|
|
2
|
+
/**
|
|
3
|
+
* Harness for interacting with an error image component in tests.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SkyErrorImageHarness extends SkyQueryableComponentHarness {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
static hostSelector: string;
|
|
10
|
+
}
|
package/testing/public-api.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { SkyErrorFixture } from './legacy/error-fixture';
|
|
2
|
+
export { SkyErrorHarness } from './modules/error/error-harness';
|
|
3
|
+
export { SkyErrorHarnessFilters } from './modules/error/error-harness-filters';
|
|
2
4
|
export { SkyErrorModalHarness } from './modules/error/error-modal-harness';
|