UNPKG

wdio-wait-for

Version:

a library of conditions that are useful for end-to-end tests

12 lines (11 loc) 345 B
/** * Negates the result of a promise * * @example * browser.waitUntil(not(alertIsPresent())); * * @param {!Function} expectedCondition The function to check * * @returns {!function} An expected condition that returns the negated value. */ export declare function not(expectedCondition: () => Promise<boolean>): () => Promise<boolean>;