MCPcopy Create free account
hub / github.com/angular/components / getText

Function getText

src/material/stepper/testing/stepper-button-harnesses.ts:15–17  ·  view source on GitHub ↗

Gets the text of the button.

()

Source from the content-addressed store, hash-verified

13abstract class StepperButtonHarness extends ComponentHarness {
14 /** Gets the text of the button. */
15 async getText(): Promise<string> {
16 return (await this.host()).text();
17 }
18
19 /** Clicks the button. */
20 async click(): Promise<void> {

Callers

nothing calls this directly

Calls 1

textMethod · 0.65

Tested by

no test coverage detected