import { and, Expectation } from '@serenity-js/assertions'; import { ElementFinder } from 'protractor'; import { isEnabled } from './isEnabled'; import { isVisible } from './isVisible'; /** * @desc * Expectation that the element is visible and enabled, and therefore clickable * * @returns {Expectation} */ export function isClickable(): Expectation { return Expectation.to('become clickable').soThatActual(and(isVisible(), isEnabled())); }