source: trip-planner-front/node_modules/@angular/material/tabs/testing/tab-link-harness.d.ts@ 6a3a178

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

initial commit

  • Property mode set to 100644
File size: 1.2 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 { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
9import { TabLinkHarnessFilters } from './tab-harness-filters';
10/** Harness for interacting with a standard Angular Material tab link in tests. */
11export declare class MatTabLinkHarness extends ComponentHarness {
12 /** The selector for the host element of a `MatTabLink` instance. */
13 static hostSelector: string;
14 /**
15 * Gets a `HarnessPredicate` that can be used to search for a `MatTabLinkHarness` that meets
16 * certain criteria.
17 * @param options Options for filtering which tab link instances are considered a match.
18 * @return a `HarnessPredicate` configured with the given options.
19 */
20 static with(options?: TabLinkHarnessFilters): HarnessPredicate<MatTabLinkHarness>;
21 /** Gets the label of the link. */
22 getLabel(): Promise<string>;
23 /** Whether the link is active. */
24 isActive(): Promise<boolean>;
25 /** Whether the link is disabled. */
26 isDisabled(): Promise<boolean>;
27 /** Clicks on the link. */
28 click(): Promise<void>;
29}
Note: See TracBrowser for help on using the repository browser.