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 { MatButtonToggleAppearance } from '@angular/material/button-toggle';
|
---|
10 | import { ButtonToggleGroupHarnessFilters } from './button-toggle-group-harness-filters';
|
---|
11 | import { ButtonToggleHarnessFilters } from './button-toggle-harness-filters';
|
---|
12 | import { MatButtonToggleHarness } from './button-toggle-harness';
|
---|
13 | /** Harness for interacting with a standard mat-button-toggle in tests. */
|
---|
14 | export 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 | }
|
---|