diff --git a/x-pack/test/functional/services/ml/settings_calendar.ts b/x-pack/test/functional/services/ml/settings_calendar.ts index 3ab062dc2e6ee..4c98124a19616 100644 --- a/x-pack/test/functional/services/ml/settings_calendar.ts +++ b/x-pack/test/functional/services/ml/settings_calendar.ts @@ -267,7 +267,7 @@ export function MachineLearningSettingsCalendarProvider( }, async assertApplyToAllJobsSwitchCheckState(expectedCheckState: boolean) { - const actualCheckState = this.getApplyToAllJobsSwitchCheckedState(); + const actualCheckState = await this.getApplyToAllJobsSwitchCheckedState(); expect(actualCheckState).to.eql( expectedCheckState, `Apply to all jobs switch check state should be '${expectedCheckState}' (got '${actualCheckState}')`