import { and } from '@serenity-js/assertions' ; import { Expectation } from '@serenity-js/core' ; import { ElementFinder } from 'protractor' ; import { isEnabled } from './isEnabled' ; import { isVisible } from './isVisible' ; desc returns { serenity-js see {@link @serenity-js/assertions~Ensure} see {@link @serenity-js/core/lib/screenplay/questions~Check} see Wait export function isClickable ( ) { return Expectation . to < ElementFinder > ( 'become clickable' ) . soThatActual ( and ( isVisible ( ) , isEnabled ( ) ) ) ; }