1234567891011121314151617181920212223242526272829303132333435 |
- import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
- /** A set of criteria that can be used to filter a list of `MatTooltipHarness` instances. */
- interface TooltipHarnessFilters extends BaseHarnessFilters {
- }
- /** Harness for interacting with a mat-tooltip in tests. */
- declare class MatTooltipHarness extends ComponentHarness {
- static hostSelector: string;
- private _optionalPanel;
- private _hiddenClass;
- private _disabledClass;
- private _showAnimationName;
- private _hideAnimationName;
- /**
- * Gets a `HarnessPredicate` that can be used to search for a tooltip trigger with specific
- * attributes.
- * @param options Options for narrowing the search.
- * @return a `HarnessPredicate` configured with the given options.
- */
- static with<T extends MatTooltipHarness>(this: ComponentHarnessConstructor<T>, options?: TooltipHarnessFilters): HarnessPredicate<T>;
- /** Shows the tooltip. */
- show(): Promise<void>;
- /** Hides the tooltip. */
- hide(): Promise<void>;
- /** Gets whether the tooltip is open. */
- isOpen(): Promise<boolean>;
- /** Gets whether the tooltip is disabled */
- isDisabled(): Promise<boolean>;
- /** Gets a promise for the tooltip panel's text. */
- getTooltipText(): Promise<string>;
- }
- export { MatTooltipHarness };
- export type { TooltipHarnessFilters };
|