source: trip-planner-front/node_modules/@angular/material/core/testing/optgroup-harness.d.ts

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

initial commit

  • Property mode set to 100644
File size: 1.4 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 { OptgroupHarnessFilters } from './optgroup-harness-filters';
10import { MatOptionHarness } from './option-harness';
11import { OptionHarnessFilters } from './option-harness-filters';
12/** Harness for interacting with a `mat-optgroup` in tests. */
13export declare class MatOptgroupHarness extends ComponentHarness {
14 /** Selector used to locate option group instances. */
15 static hostSelector: string;
16 private _label;
17 /**
18 * Gets a `HarnessPredicate` that can be used to search for a `MatOptgroupHarness` that meets
19 * certain criteria.
20 * @param options Options for filtering which option instances are considered a match.
21 * @return a `HarnessPredicate` configured with the given options.
22 */
23 static with(options?: OptgroupHarnessFilters): HarnessPredicate<MatOptgroupHarness>;
24 /** Gets the option group's label text. */
25 getLabelText(): Promise<string>;
26 /** Gets whether the option group is disabled. */
27 isDisabled(): Promise<boolean>;
28 /**
29 * Gets the options that are inside the group.
30 * @param filter Optionally filters which options are included.
31 */
32 getOptions(filter?: OptionHarnessFilters): Promise<MatOptionHarness[]>;
33}
Note: See TracBrowser for help on using the repository browser.