UNPKG

@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.24 kB
import { ElementProfile, O3rElement } from '../element'; /** * Interface to describe the 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 SelectElementProfile extends ElementProfile { /** * Select an element in a dropdown by index. */ selectByIndex(index: number, _timeout?: number): Promise<void>; /** * Select an element in a dropdown by value. */ selectByValue(value: string, _timeout?: number): Promise<void>; } /** * Mock for ElementProfile class. * This class is used for fixture compilation purpose. */ export declare class O3rSelectElement extends O3rElement implements SelectElementProfile { 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 */ selectByValue(_value: string, _timeout?: number): Promise<void>; } //# sourceMappingURL=select-element.d.ts.map