import { Expectation } from '@serenity-js/core' ; import { ElementFinder } from 'protractor' ; import { ElementFinderExpectation } from './ElementFinderExpectation' ; desc returns { serenity-js see {@link @serenity-js/assertions~Ensure} see {@link @serenity-js/core/lib/screenplay/questions~Check} see Wait export function isEnabled ( ) { return ElementFinderExpectation . forElementTo ( 'become enabled' , actual => actual . isEnabled ( ) ) ; }