import {MatTooltipHarness} from '@angular/material/tooltip/testing';
MatTooltipHarness
Harness for interacting with a standard mat-tooltip in tests.
Name | Description |
---|---|
|
async
getTooltipText
|
|
---|---|
Gets a promise for the tooltip panel's text. |
|
Returns | |
Promise<string>
|
|
async
hide
|
|
---|---|
Hides the tooltip. |
|
Returns | |
Promise<void>
|
Promise that resolves when the action completes. |
async
host
|
|
---|---|
Gets a |
|
Returns | |
Promise<TestElement>
|
|
async
isOpen
|
|
---|---|
Gets whether the tooltip is open. |
|
Returns | |
Promise<boolean>
|
|
async
show
|
|
---|---|
Shows the tooltip. |
|
Returns | |
Promise<void>
|
Promise that resolves when the action completes. |
static
with
|
|
---|---|
Gets a |
|
Parameters | |
options TooltipHarnessFilters = {}
|
Options for narrowing the search. |
Returns | |
HarnessPredicate<MatTooltipHarness>
|
a |
TooltipHarnessFilters
A set of criteria that can be used to filter a list of MatTooltipHarness
instances.