Core Modules@serenity-js/assertionsExpectationsandexternaland Callableand<Actual_Type>(...expectations: Expectation<Actual_Type>[]): Expectation<Actual_Type>Creates an expectation that is met when all the expectations are met for the given actual value. Use and to combine several expectations using logical "and", Combining several expectationsimport { actorCalled } from '@serenity-js/core'import { Ensure, and, startsWith, endsWith } from '@serenity-js/assertions'await actorCalled('Ester').attemptsTo( Ensure.that('Hello World!', and(startsWith('Hello'), endsWith('!'))),)Type parametersActual_TypeParametersexternalrest...expectations: Expectation<Actual_Type>[]Returns Expectation<Actual_Type>
Creates an expectation that is met when all the
expectations
are met for the given actual value.Use
and
to combine several expectations using logical "and",Combining several expectations