UNPKG

protractor-sync-options-plugin

Version:

Protractor plugin to ignore specific async calls in angular application

28 lines (27 loc) 1.04 kB
import { ProtractorBrowser } from 'protractor'; import { SyncOptionsConfig } from './interfaces'; /** * makes monkey-patching for protractor and frontend angular.testability * @TODO find a way to use some api instead of monkey-patching */ export declare class Patcher { browser?: ProtractorBrowser; constructor(browser?: ProtractorBrowser); /** * * @param config config to use * @returns `true` in success case, `false` otherwise (e.g. already patched) */ patchClientTestability(config: SyncOptionsConfig): Promise<void>; /** * restores patched with {@link this#patchClientTestability} client */ restoreClientTestability(): Promise<boolean>; /** * patches {@link browser#waitForAngular} * @returns `true` in success case, `false` otherwise (e.g. already patched) */ patchWaitForAngularEnabled(config: SyncOptionsConfig): Promise<void>; restoreWaitForAngularEnabled(): Promise<void>; isWaitForAngularPatched(): boolean; }