/** * @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.dev/license */ import {ContentContainerComponentHarness, HarnessPredicate} from '@angular/cdk/testing'; import {DrawerContentHarnessFilters} from './drawer-harness-filters'; /** Harness for interacting with a standard mat-drawer-content in tests. */ export class MatDrawerContentHarness extends ContentContainerComponentHarness { /** The selector for the host element of a `MatDrawerContent` instance. */ static hostSelector = '.mat-drawer-content'; /** * Gets a `HarnessPredicate` that can be used to search for a `MatDrawerContentHarness` that * meets certain criteria. * @param options Options for filtering which drawer content instances are considered a match. * @return a `HarnessPredicate` configured with the given options. */ static with( options: DrawerContentHarnessFilters = {}, ): HarnessPredicate { return new HarnessPredicate(MatDrawerContentHarness, options); } }