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 1.28 kB
/** * This function waits for all fetchs calls to be resolved and the page to be stable to resolve the promise. * It permits to easily run synchronous e2e tests on a flow that uses fetchs calls with protractor. * This is very useful in the case of Otter calls to backend because protractor synchronization manager do not care * about fetchs calls. * * This function needs the FetchManager to have been initialized and injected in the browser at the beginning of the * flow with `initFetchManager()` * * You can ignore the waiting of fetchs by setting `browser.ignoreSynchronization` to `true` * @deprecated Will be removed in v13, please use Playwright instead */ export declare function waitForOtterStable(): Promise<void>; /** * This function initiliaze the FetchManager. Set `window.fetch` variable with a custom behaviour in order to count the * fetch calls. * @deprecated Will be removed in v13, please use Playwright instead */ export declare function initFetchManager(): Promise<void>; /** * This function stops the FetchManager. Reset `window.fetch` variable with its native behaviour. * @deprecated Will be removed in v13, please use Playwright instead */ export declare function stopFetchManager(): Promise<void>; //# sourceMappingURL=utils.d.ts.map