You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

34 lines
1.5 KiB

/**
* @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, HarnessPredicate } from '@angular/cdk/testing';
import { MatBadgePosition, MatBadgeSize } from '@angular/material/badge';
import { BadgeHarnessFilters } from './badge-harness-filters';
/** Harness for interacting with a standard Material badge in tests. */
export declare class MatBadgeHarness extends ComponentHarness {
static hostSelector: string;
/**
* Gets a `HarnessPredicate` that can be used to search for a badge with specific attributes.
* @param options Options for narrowing the search:
* - `text` finds a badge host with a particular text.
* @return a `HarnessPredicate` configured with the given options.
*/
static with(options?: BadgeHarnessFilters): HarnessPredicate<MatBadgeHarness>;
private _badgeElement;
/** Gets a promise for the badge text. */
getText(): Promise<string>;
/** Gets whether the badge is overlapping the content. */
isOverlapping(): Promise<boolean>;
/** Gets the position of the badge. */
getPosition(): Promise<MatBadgePosition>;
/** Gets the size of the badge. */
getSize(): Promise<MatBadgeSize>;
/** Gets whether the badge is hidden. */
isHidden(): Promise<boolean>;
/** Gets whether the badge is disabled. */
isDisabled(): Promise<boolean>;
}