@o3r/testing
Version:
The module provides testing (e2e, unit test) utilities to help you build your own E2E pipeline integrating visual testing.
28 lines • 961 B
TypeScript
import { ElementProfile, O3rElement } from './element';
/**
* Constructor of a O3rGroup
*/
export type O3rGroupConstructor<T extends GroupProfile<V>, V extends ElementProfile> = new (sourceElement: V[]) => T;
/**
* Interface to describe the GroupProfile that are queried inside a fixture.
* As for ComponentFixture, this abstracts the testing framework that is used by choosing the right
* implementation at runtime.
*/
export interface GroupProfile<T extends ElementProfile> {
/** List of items */
items: T[];
/** Check if the group is valid */
isValidGroup(): Promise<boolean>;
}
/**
* Mock for GroupProfile class.
* This class is used for fixture compilation purpose.
*/
export declare class O3rGroup<T extends O3rElement> implements GroupProfile<T> {
/** @inheritDoc */
get items(): T[];
constructor(_sourceElement: T[]);
/** @inheritDoc */
isValidGroup(): Promise<boolean>;
}
//# sourceMappingURL=group.d.ts.map