source: trip-planner-front/node_modules/@angular/material/button-toggle/testing/button-toggle-group-harness.d.ts@ b738035

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

initial commit

  • Property mode set to 100644
File size: 1.8 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 { MatButtonToggleAppearance } from '@angular/material/button-toggle';
10import { ButtonToggleGroupHarnessFilters } from './button-toggle-group-harness-filters';
11import { ButtonToggleHarnessFilters } from './button-toggle-harness-filters';
12import { MatButtonToggleHarness } from './button-toggle-harness';
13/** Harness for interacting with a standard mat-button-toggle in tests. */
14export declare class MatButtonToggleGroupHarness extends ComponentHarness {
15 /** The selector for the host element of a `MatButton` instance. */
16 static hostSelector: string;
17 /**
18 * Gets a `HarnessPredicate` that can be used to search for a `MatButtonToggleGroupHarness`
19 * that meets certain criteria.
20 * @param options Options for filtering which button toggle instances are considered a match.
21 * @return a `HarnessPredicate` configured with the given options.
22 */
23 static with(options?: ButtonToggleGroupHarnessFilters): HarnessPredicate<MatButtonToggleGroupHarness>;
24 /**
25 * Gets the button toggles that are inside the group.
26 * @param filter Optionally filters which toggles are included.
27 */
28 getToggles(filter?: ButtonToggleHarnessFilters): Promise<MatButtonToggleHarness[]>;
29 /** Gets whether the button toggle group is disabled. */
30 isDisabled(): Promise<boolean>;
31 /** Gets whether the button toggle group is laid out vertically. */
32 isVertical(): Promise<boolean>;
33 /** Gets the appearance that the group is using. */
34 getAppearance(): Promise<MatButtonToggleAppearance>;
35}
Note: See TracBrowser for help on using the repository browser.