UNPKG

@angular/material

Version:
29 lines (25 loc) 1.42 kB
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing'; import { P as ProgressSpinnerMode } from '../../progress-spinner.d-DtYCWeYd.js'; import '@angular/core'; import '../../palette.d-BSSFKjO6.js'; /** A set of criteria that can be used to filter a list of `MatProgressSpinnerHarness` instances. */ interface ProgressSpinnerHarnessFilters extends BaseHarnessFilters { } /** Harness for interacting with a MDC based mat-progress-spinner in tests. */ declare class MatProgressSpinnerHarness extends ComponentHarness { /** The selector for the host element of a `MatProgressSpinner` instance. */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a progress spinnner with specific * attributes. * @param options Options for filtering which progress spinner instances are considered a match. * @return a `HarnessPredicate` configured with the given options. */ static with<T extends MatProgressSpinnerHarness>(this: ComponentHarnessConstructor<T>, options?: ProgressSpinnerHarnessFilters): HarnessPredicate<T>; /** Gets the progress spinner's value. */ getValue(): Promise<number | null>; /** Gets the progress spinner's mode. */ getMode(): Promise<ProgressSpinnerMode>; } export { MatProgressSpinnerHarness }; export type { ProgressSpinnerHarnessFilters };