source: trip-planner-front/node_modules/@angular/material/stepper/testing/stepper-button-harnesses.d.ts@ 6fe77af

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

initial commit

  • Property mode set to 100644
File size: 1.9 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 { StepperButtonHarnessFilters } from './step-harness-filters';
10/** Base class for stepper button harnesses. */
11declare 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. */
18export 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. */
30export 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}
41export {};
Note: See TracBrowser for help on using the repository browser.