source: trip-planner-front/node_modules/@angular/material/stepper/testing/stepper-harness.d.ts@ 188ee53

Last change on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
9import { MatStepHarness } from './step-harness';
10import { StepperHarnessFilters, StepHarnessFilters, StepperOrientation } from './step-harness-filters';
11/** Harness for interacting with a standard Material stepper in tests. */
12export declare class MatStepperHarness extends ComponentHarness {
13 /** The selector for the host element of a `MatStepper` instance. */
14 static hostSelector: string;
15 /**
16 * Gets a `HarnessPredicate` that can be used to search for a `MatStepperHarness` that meets
17 * certain criteria.
18 * @param options Options for filtering which stepper instances are considered a match.
19 * @return a `HarnessPredicate` configured with the given options.
20 */
21 static with(options?: StepperHarnessFilters): HarnessPredicate<MatStepperHarness>;
22 /**
23 * Gets the list of steps in the stepper.
24 * @param filter Optionally filters which steps are included.
25 */
26 getSteps(filter?: StepHarnessFilters): Promise<MatStepHarness[]>;
27 /** Gets the orientation of the stepper. */
28 getOrientation(): Promise<StepperOrientation>;
29 /**
30 * Selects a step in this stepper.
31 * @param filter An optional filter to apply to the child steps. The first step matching the
32 * filter will be selected.
33 */
34 selectStep(filter?: StepHarnessFilters): Promise<void>;
35}
Note: See TracBrowser for help on using the repository browser.