@o3r/testing
Version:
The module provides testing (e2e, unit test) utilities to help you build your own E2E pipeline integrating visual testing.
36 lines • 1.3 kB
TypeScript
import { O3rElement } from '../element';
import { SelectElementProfile } from '../elements';
/**
* Interface to describe the material select elements that are used inside a fixture.
* As for ComponentFixtureProfile, this abstracts the testing framework that is used by choosing the right
* implementation at runtime.
*/
export interface MatSelectProfile extends SelectElementProfile {
}
/**
* Mock for ElementProfile class.
* This class is used for fixture compilation purpose.
*/
export declare class MatSelect extends O3rElement implements MatSelectProfile {
constructor(_sourceElement: any);
/**
* Select an element in a dropdown by index.
* @param _index
* @param _timeout
*/
selectByIndex(_index: number, _timeout?: number): Promise<void>;
/**
* Select an element in a dropdown by value.
* @param _value
* @param _timeout
* @deprecated selectByValue relies on ng-reflect-value, which doesn't work when app is in production mode
*/
selectByValue(_value: string, _timeout?: number): Promise<void>;
/**
* Select an element in a dropdown by label.
* @param _label
* @param _timeout
*/
selectByLabel(_label: string, _timeout?: number): Promise<void>;
}
//# sourceMappingURL=select-material.d.ts.map