Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function isVisible(): Expectation {
return Expectation.to('become visible').soThatActual(and(
isPresent(),
isDisplayed(),
));
}
export function isSelected(): Expectation {
return Expectation.to('become selected').soThatActual(and(
isPresent(),
ElementFinderExpectation.forElementTo('become selected', actual => actual.isSelected()),
));
}
export function isClickable(): Expectation {
return Expectation.to('become clickable').soThatActual(and(isVisible(), isEnabled()));
}