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 | */
|
---|
8 | import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
---|
9 | import { StepperButtonHarnessFilters } from './step-harness-filters';
|
---|
10 | /** Base class for stepper button harnesses. */
|
---|
11 | declare abstract class StepperButtonHarness extends ComponentHarness {
|
---|
12 | /** Gets the text of the button. */
|
---|
13 | getText(): Promise<string>;
|
---|
14 | /** Clicks the button. */
|
---|
15 | click(): Promise<void>;
|
---|
16 | }
|
---|
17 | /** Harness for interacting with a standard Angular Material stepper next button in tests. */
|
---|
18 | export declare class MatStepperNextHarness extends StepperButtonHarness {
|
---|
19 | /** The selector for the host element of a `MatStep` instance. */
|
---|
20 | static hostSelector: string;
|
---|
21 | /**
|
---|
22 | * Gets a `HarnessPredicate` that can be used to search for a `MatStepperNextHarness` that meets
|
---|
23 | * certain criteria.
|
---|
24 | * @param options Options for filtering which steps are considered a match.
|
---|
25 | * @return a `HarnessPredicate` configured with the given options.
|
---|
26 | */
|
---|
27 | static with(options?: StepperButtonHarnessFilters): HarnessPredicate<MatStepperNextHarness>;
|
---|
28 | }
|
---|
29 | /** Harness for interacting with a standard Angular Material stepper previous button in tests. */
|
---|
30 | export declare class MatStepperPreviousHarness extends StepperButtonHarness {
|
---|
31 | /** The selector for the host element of a `MatStep` instance. */
|
---|
32 | static hostSelector: string;
|
---|
33 | /**
|
---|
34 | * Gets a `HarnessPredicate` that can be used to search for a `MatStepperPreviousHarness`
|
---|
35 | * that meets certain criteria.
|
---|
36 | * @param options Options for filtering which steps are considered a match.
|
---|
37 | * @return a `HarnessPredicate` configured with the given options.
|
---|
38 | */
|
---|
39 | static with(options?: StepperButtonHarnessFilters): HarnessPredicate<MatStepperPreviousHarness>;
|
---|
40 | }
|
---|
41 | export {};
|
---|