UNPKG

@o3r/testing

Version:

The module provides testing (e2e, unit test) utilities to help you build your own E2E pipeline integrating visual testing.

25 lines 946 B
import { ComponentFixtureProfile, O3rComponentFixture } from './component-fixture'; import { ElementProfile, O3rElement } from './element'; /** * Interface to describe a page fixture. */ export interface PageFixtureProfile<V extends ElementProfile> extends ComponentFixtureProfile<V> { /** * Returns the title of the page */ getTitle(): Promise<string>; } /** * Mock for page fixture class. * This class is used for fixture compilation purpose. */ export declare class O3rPageFixture<V extends O3rElement = O3rElement> extends O3rComponentFixture<V> implements PageFixtureProfile<V> { /** * Root element of this fixture. Optional in a Protractor. * All further queries will be applied to the element tree if any, otherwise they will be applied to the whole DOM. * @param _rootElement */ constructor(_rootElement?: V); getTitle(): Promise<string>; } //# sourceMappingURL=page-fixture.d.ts.map