MCPcopy
hub / github.com/angular/components / getText

Method getText

src/material/chips/testing/chip-harness.ts:50–54  ·  view source on GitHub ↗

Gets a promise for the text content the option.

()

Source from the content-addressed store, hash-verified

48
49 /** Gets a promise for the text content the option. */
50 async getText(): Promise<string> {
51 return (await this.host()).text({
52 exclude: '.mat-mdc-chip-avatar, .mat-mdc-chip-trailing-icon, .mat-icon',
53 });
54 }
55
56 /** Whether the chip is disabled. */
57 async isDisabled(): Promise<boolean> {

Callers 5

withMethod · 0.45
withMethod · 0.45

Calls 1

textMethod · 0.65

Tested by

no test coverage detected