source: trip-planner-front/node_modules/@angular/material/badge/testing/badge-harness.d.ts

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

initial commit

  • Property mode set to 100644
File size: 1.5 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 { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
9import { MatBadgePosition, MatBadgeSize } from '@angular/material/badge';
10import { BadgeHarnessFilters } from './badge-harness-filters';
11/** Harness for interacting with a standard Material badge in tests. */
12export declare class MatBadgeHarness extends ComponentHarness {
13 static hostSelector: string;
14 /**
15 * Gets a `HarnessPredicate` that can be used to search for a badge with specific attributes.
16 * @param options Options for narrowing the search:
17 * - `text` finds a badge host with a particular text.
18 * @return a `HarnessPredicate` configured with the given options.
19 */
20 static with(options?: BadgeHarnessFilters): HarnessPredicate<MatBadgeHarness>;
21 private _badgeElement;
22 /** Gets a promise for the badge text. */
23 getText(): Promise<string>;
24 /** Gets whether the badge is overlapping the content. */
25 isOverlapping(): Promise<boolean>;
26 /** Gets the position of the badge. */
27 getPosition(): Promise<MatBadgePosition>;
28 /** Gets the size of the badge. */
29 getSize(): Promise<MatBadgeSize>;
30 /** Gets whether the badge is hidden. */
31 isHidden(): Promise<boolean>;
32 /** Gets whether the badge is disabled. */
33 isDisabled(): Promise<boolean>;
34}
Note: See TracBrowser for help on using the repository browser.