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

Method with

src/material/stepper/testing/stepper-harness.ts:28–34  ·  view source on GitHub ↗

* Gets a `HarnessPredicate` that can be used to search for a `MatStepperHarness` that meets * certain criteria. * @param options Options for filtering which stepper instances are considered a match. * @return a `HarnessPredicate` configured with the given options.

(options: StepperHarnessFilters = {})

Source from the content-addressed store, hash-verified

26 * @return a `HarnessPredicate` configured with the given options.
27 */
28 static with(options: StepperHarnessFilters = {}): HarnessPredicate<MatStepperHarness> {
29 return new HarnessPredicate(MatStepperHarness, options).addOption(
30 'orientation',
31 options.orientation,
32 async (harness, orientation) => (await harness.getOrientation()) === orientation,
33 );
34 }
35
36 /**
37 * Gets the list of steps in the stepper.

Callers 1

getStepsMethod · 0.45

Calls 2

addOptionMethod · 0.80
getOrientationMethod · 0.45

Tested by

no test coverage detected