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

Method isSelected

src/material/stepper/testing/step-harness.ts:65–71  ·  view source on GitHub ↗

Whether the step is selected.

()

Source from the content-addressed store, hash-verified

63
64 /** Whether the step is selected. */
65 async isSelected(): Promise<boolean> {
66 const host = await this.host();
67 return (
68 (await host.getAttribute('aria-selected')) === 'true' ||
69 (await host.getAttribute('aria-current')) === 'step'
70 );
71 }
72
73 /** Whether the step has been filled out. */
74 async isCompleted(): Promise<boolean> {

Callers 1

isCompletedMethod · 0.95

Calls 1

getAttributeMethod · 0.65

Tested by

no test coverage detected