source: trip-planner-front/node_modules/@angular/material/tabs/testing/tab-group-harness.d.ts@ 59329aa

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

initial commit

  • Property mode set to 100644
File size: 1.5 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 { TabGroupHarnessFilters, TabHarnessFilters } from './tab-harness-filters';
10import { MatTabHarness } from './tab-harness';
11/** Harness for interacting with a standard mat-tab-group in tests. */
12export 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}
Note: See TracBrowser for help on using the repository browser.