index.d.ts 1.1 KB

123456789101112131415161718192021222324
  1. import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
  2. /** A set of criteria that can be used to filter a list of `MatProgressBarHarness` instances. */
  3. interface ProgressBarHarnessFilters extends BaseHarnessFilters {
  4. }
  5. /** Harness for interacting with a `mat-progress-bar` in tests. */
  6. declare class MatProgressBarHarness extends ComponentHarness {
  7. static hostSelector: string;
  8. /**
  9. * Gets a `HarnessPredicate` that can be used to search for a progress bar with specific
  10. * attributes.
  11. * @param options Options for filtering which progress bar instances are considered a match.
  12. * @return a `HarnessPredicate` configured with the given options.
  13. */
  14. static with<T extends MatProgressBarHarness>(this: ComponentHarnessConstructor<T>, options?: ProgressBarHarnessFilters): HarnessPredicate<T>;
  15. /** Gets a promise for the progress bar's value. */
  16. getValue(): Promise<number | null>;
  17. /** Gets a promise for the progress bar's mode. */
  18. getMode(): Promise<string | null>;
  19. }
  20. export { MatProgressBarHarness };
  21. export type { ProgressBarHarnessFilters };