wdio-wait-for
Version:
a library of conditions that are useful for end-to-end tests
21 lines (20 loc) • 584 B
JavaScript
;
const importLogicalPromise = import('../logical/index.js');
exports.and = function (...args) {
return async () => {
const fn = (await importLogicalPromise).and;
return fn.call(this, ...args)();
};
};
exports.not = function (expectedCondition) {
return async () => {
const fn = (await importLogicalPromise).not;
return fn.call(this, expectedCondition)();
};
};
exports.or = function (...args) {
return async () => {
const fn = (await importLogicalPromise).or;
return fn.call(this, ...args)();
};
};