index.d.ts 1.1 KB

1234567891011121314151617181920212223242526
  1. import { BaseHarnessFilters, ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
  2. interface BottomSheetHarnessFilters extends BaseHarnessFilters {
  3. }
  4. /** Harness for interacting with a standard MatBottomSheet in tests. */
  5. declare class MatBottomSheetHarness extends ContentContainerComponentHarness<string> {
  6. static hostSelector: string;
  7. /**
  8. * Gets a `HarnessPredicate` that can be used to search for a bottom sheet with
  9. * specific attributes.
  10. * @param options Options for narrowing the search.
  11. * @return a `HarnessPredicate` configured with the given options.
  12. */
  13. static with(options?: BottomSheetHarnessFilters): HarnessPredicate<MatBottomSheetHarness>;
  14. /** Gets the value of the bottom sheet's "aria-label" attribute. */
  15. getAriaLabel(): Promise<string | null>;
  16. /**
  17. * Dismisses the bottom sheet by pressing escape. Note that this method cannot
  18. * be used if "disableClose" has been set to true via the config.
  19. */
  20. dismiss(): Promise<void>;
  21. }
  22. export { MatBottomSheetHarness };
  23. export type { BottomSheetHarnessFilters };