source: trip-planner-front/node_modules/@angular/material/tooltip/testing/tooltip-harness.d.ts@ e29cc2e

Last change on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { AsyncFactoryFn, ComponentHarness, HarnessPredicate, TestElement } from '@angular/cdk/testing';
9import { TooltipHarnessFilters } from './tooltip-harness-filters';
10export declare abstract class _MatTooltipHarnessBase extends ComponentHarness {
11 protected abstract _optionalPanel: AsyncFactoryFn<TestElement | null>;
12 /** Shows the tooltip. */
13 show(): Promise<void>;
14 /** Hides the tooltip. */
15 hide(): Promise<void>;
16 /** Gets whether the tooltip is open. */
17 isOpen(): Promise<boolean>;
18 /** Gets a promise for the tooltip panel's text. */
19 getTooltipText(): Promise<string>;
20}
21/** Harness for interacting with a standard mat-tooltip in tests. */
22export declare class MatTooltipHarness extends _MatTooltipHarnessBase {
23 protected _optionalPanel: AsyncFactoryFn<TestElement | null>;
24 static hostSelector: string;
25 /**
26 * Gets a `HarnessPredicate` that can be used to search
27 * for a tooltip trigger with specific attributes.
28 * @param options Options for narrowing the search.
29 * @return a `HarnessPredicate` configured with the given options.
30 */
31 static with(options?: TooltipHarnessFilters): HarnessPredicate<MatTooltipHarness>;
32}
Note: See TracBrowser for help on using the repository browser.