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 | */
|
---|
8 | import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
---|
9 | import { TabNavBarHarnessFilters, TabLinkHarnessFilters } from './tab-harness-filters';
|
---|
10 | import { MatTabLinkHarness } from './tab-link-harness';
|
---|
11 | /** Harness for interacting with a standard mat-tab-nav-bar in tests. */
|
---|
12 | export 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 | }
|
---|