* 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 = {})
| 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. |
no test coverage detected