@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.31 kB
TypeScript
import { ElementProfile, O3rElement } from '../element';
/**
* Interface to describe the Checkbox 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 CheckboxElementProfile extends ElementProfile {
/**
* Check the checkbox element
* @param value If specified, determine the value of the checkbox button
* @param associatedLabel If specified, specify the label associated to the checkbox
*/
check(value?: boolean, associatedLabel?: O3rElement): Promise<void>;
/**
* Uncheck the checkbox element
*/
uncheck(): Promise<void>;
/**
* Return true if the checkbox button is checked
*/
isChecked(): Promise<boolean>;
}
/**
* Mock for ElementProfile class.
* This class is used for fixture compilation purpose.
*/
export declare class O3rCheckboxElement extends O3rElement implements CheckboxElementProfile {
constructor(_sourceElement: any);
/** @inheritDoc */
check(_value?: boolean, _associatedLabel?: O3rElement): Promise<void>;
/** @inheritDoc */
uncheck(): Promise<void>;
/** @inheritDoc */
isChecked(): Promise<boolean>;
}
//# sourceMappingURL=checkbox-element.d.ts.map