source: trip-planner-front/node_modules/@angular/material/tabs/testing/tab-nav-bar-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.6 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 { TabNavBarHarnessFilters, TabLinkHarnessFilters } from './tab-harness-filters';
10import { MatTabLinkHarness } from './tab-link-harness';
11/** Harness for interacting with a standard mat-tab-nav-bar in tests. */
12export declare class MatTabNavBarHarness extends ComponentHarness {
13 /** The selector for the host element of a `MatTabNavBar` instance. */
14 static hostSelector: string;
15 /**
16 * Gets a `HarnessPredicate` that can be used to search for a `MatTabNavBar` that meets
17 * certain criteria.
18 * @param options Options for filtering which tab nav bar instances are considered a match.
19 * @return a `HarnessPredicate` configured with the given options.
20 */
21 static with(options?: TabNavBarHarnessFilters): HarnessPredicate<MatTabNavBarHarness>;
22 /**
23 * Gets the list of links in the nav bar.
24 * @param filter Optionally filters which links are included.
25 */
26 getLinks(filter?: TabLinkHarnessFilters): Promise<MatTabLinkHarness[]>;
27 /** Gets the active link in the nav bar. */
28 getActiveLink(): Promise<MatTabLinkHarness>;
29 /**
30 * Clicks a link inside the nav bar.
31 * @param filter An optional filter to apply to the child link. The first link matching the filter
32 * will be clicked.
33 */
34 clickLink(filter?: TabLinkHarnessFilters): Promise<void>;
35}
Note: See TracBrowser for help on using the repository browser.