[6a3a178] | 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 { TabGroupHarnessFilters, TabHarnessFilters } from './tab-harness-filters';
|
---|
| 10 | import { MatTabHarness } from './tab-harness';
|
---|
| 11 | /** Harness for interacting with a standard mat-tab-group in tests. */
|
---|
| 12 | export declare class MatTabGroupHarness extends ComponentHarness {
|
---|
| 13 | /** The selector for the host element of a `MatTabGroup` instance. */
|
---|
| 14 | static hostSelector: string;
|
---|
| 15 | /**
|
---|
| 16 | * Gets a `HarnessPredicate` that can be used to search for a `MatTabGroupHarness` that meets
|
---|
| 17 | * certain criteria.
|
---|
| 18 | * @param options Options for filtering which tab group instances are considered a match.
|
---|
| 19 | * @return a `HarnessPredicate` configured with the given options.
|
---|
| 20 | */
|
---|
| 21 | static with(options?: TabGroupHarnessFilters): HarnessPredicate<MatTabGroupHarness>;
|
---|
| 22 | /**
|
---|
| 23 | * Gets the list of tabs in the tab group.
|
---|
| 24 | * @param filter Optionally filters which tabs are included.
|
---|
| 25 | */
|
---|
| 26 | getTabs(filter?: TabHarnessFilters): Promise<MatTabHarness[]>;
|
---|
| 27 | /** Gets the selected tab of the tab group. */
|
---|
| 28 | getSelectedTab(): Promise<MatTabHarness>;
|
---|
| 29 | /**
|
---|
| 30 | * Selects a tab in this tab group.
|
---|
| 31 | * @param filter An optional filter to apply to the child tabs. The first tab matching the filter
|
---|
| 32 | * will be selected.
|
---|
| 33 | */
|
---|
| 34 | selectTab(filter?: TabHarnessFilters): Promise<void>;
|
---|
| 35 | }
|
---|