@o3r/testing
Version:
The module provides testing (e2e, unit test) utilities to help you build your own E2E pipeline integrating visual testing.
35 lines • 1.13 kB
TypeScript
import { ElementProfile, O3rElement } from '../element';
/**
* Interface to describe the Radio 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 RadioElementProfile extends ElementProfile {
/**
* Check the radio element
* @param value If specified, determine the value of the radio button
*/
check(value?: boolean): Promise<void>;
/**
* Uncheck the radio element
*/
uncheck(): Promise<void>;
/**
* Return true if the radio button is checked
*/
isChecked(): Promise<boolean>;
}
/**
* Mock for ElementProfile class.
* This class is used for fixture compilation purpose.
*/
export declare class O3rRadioElement extends O3rElement implements RadioElementProfile {
constructor(_sourceElement: any);
/** @inheritDoc */
check(_value?: boolean): Promise<void>;
/** @inheritDoc */
uncheck(): Promise<void>;
/** @inheritDoc */
isChecked(): Promise<boolean>;
}
//# sourceMappingURL=radio-element.d.ts.map