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

Method isOptional

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

Whether the step is optional.

()

Source from the content-addressed store, hash-verified

89
90 /** Whether the step is optional. */
91 async isOptional(): Promise<boolean> {
92 // If the node with the optional text is present, it means that the step is optional.
93 const optionalNode = await this.locatorForOptional('.mat-step-optional')();
94 return !!optionalNode;
95 }
96
97 /**
98 * Selects the given step by clicking on the label. The step may not be selected

Callers 1

Calls 1

locatorForOptionalMethod · 0.80

Tested by

no test coverage detected