source: trip-planner-front/node_modules/@angular/material/chips/testing/chip-input-harness.d.ts@ 8d391a1

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

initial commit

  • Property mode set to 100644
File size: 1.9 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 { HarnessPredicate, ComponentHarness, TestKey } from '@angular/cdk/testing';
9import { ChipInputHarnessFilters } from './chip-harness-filters';
10/** Harness for interacting with a standard Material chip inputs in tests. */
11export declare class MatChipInputHarness extends ComponentHarness {
12 static hostSelector: string;
13 /**
14 * Gets a `HarnessPredicate` that can be used to search for a `MatChipInputHarness` that meets
15 * certain criteria.
16 * @param options Options for filtering which input instances are considered a match.
17 * @return a `HarnessPredicate` configured with the given options.
18 */
19 static with(options?: ChipInputHarnessFilters): HarnessPredicate<MatChipInputHarness>;
20 /** Whether the input is disabled. */
21 isDisabled(): Promise<boolean>;
22 /** Whether the input is required. */
23 isRequired(): Promise<boolean>;
24 /** Gets the value of the input. */
25 getValue(): Promise<string>;
26 /** Gets the placeholder of the input. */
27 getPlaceholder(): Promise<string>;
28 /**
29 * Focuses the input and returns a promise that indicates when the
30 * action is complete.
31 */
32 focus(): Promise<void>;
33 /**
34 * Blurs the input and returns a promise that indicates when the
35 * action is complete.
36 */
37 blur(): Promise<void>;
38 /** Whether the input is focused. */
39 isFocused(): Promise<boolean>;
40 /**
41 * Sets the value of the input. The value will be set by simulating
42 * keypresses that correspond to the given value.
43 */
44 setValue(newValue: string): Promise<void>;
45 /** Sends a chip separator key to the input element. */
46 sendSeparatorKey(key: TestKey | string): Promise<void>;
47}
Note: See TracBrowser for help on using the repository browser.