/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {ComponentHarness} from '@angular/cdk-experimental/testing'; /** * Harness for interacting with a grid's chip input in tests. * @dynamic */ export class MatChipInputHarness extends ComponentHarness { static hostSelector = '.mat-mdc-chip-input'; /** Gets a promise for the disabled state. */ async isDisabled(): Promise { return await ((await this.host()).getAttribute('disabled')) === 'true'; } /** Gets a promise for the placeholder text. */ async getPlaceholder(): Promise { return (await this.host()).getAttribute('placeholder'); } }