import { Expectation } from '@serenity-js/assertions'; import { ElementFinder } from 'protractor'; import { ElementFinderExpectation } from './ElementFinderExpectation'; /** * @desc * Expectation that the element is enabled. * * @returns {Expectation} */ export function isEnabled(): Expectation { return ElementFinderExpectation.forElementTo('become enabled', actual => actual.isEnabled()); }