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 { HarnessPredicate } from '@angular/cdk/testing';
|
---|
9 | import { MatChipOptionHarness } from './chip-option-harness';
|
---|
10 | import { ChipListboxHarnessFilters, ChipOptionHarnessFilters } from './chip-harness-filters';
|
---|
11 | import { _MatChipListHarnessBase } from './chip-list-harness';
|
---|
12 | /** Harness for interacting with a standard selectable chip list in tests. */
|
---|
13 | export declare class MatChipListboxHarness extends _MatChipListHarnessBase {
|
---|
14 | /** The selector for the host element of a `MatChipList` instance. */
|
---|
15 | static hostSelector: string;
|
---|
16 | /**
|
---|
17 | * Gets a `HarnessPredicate` that can be used to search for a `MatChipListHarness` that meets
|
---|
18 | * certain criteria.
|
---|
19 | * @param options Options for filtering which chip list instances are considered a match.
|
---|
20 | * @return a `HarnessPredicate` configured with the given options.
|
---|
21 | */
|
---|
22 | static with(options?: ChipListboxHarnessFilters): HarnessPredicate<MatChipListboxHarness>;
|
---|
23 | /**
|
---|
24 | * Gets the list of chips inside the chip list.
|
---|
25 | * @param filter Optionally filters which chips are included.
|
---|
26 | */
|
---|
27 | getChips(filter?: ChipOptionHarnessFilters): Promise<MatChipOptionHarness[]>;
|
---|
28 | /**
|
---|
29 | * Selects a chip inside the chip list.
|
---|
30 | * @param filter An optional filter to apply to the child chips.
|
---|
31 | * All the chips matching the filter will be selected.
|
---|
32 | */
|
---|
33 | selectChips(filter?: ChipOptionHarnessFilters): Promise<void>;
|
---|
34 | }
|
---|