diff --git a/x-pack/test/functional/apps/machine_learning/anomaly_detection/date_nanos_job.ts b/x-pack/test/functional/apps/machine_learning/anomaly_detection/date_nanos_job.ts index 880a268bba794d..2a9824f46778da 100644 --- a/x-pack/test/functional/apps/machine_learning/anomaly_detection/date_nanos_job.ts +++ b/x-pack/test/functional/apps/machine_learning/anomaly_detection/date_nanos_job.ts @@ -165,8 +165,7 @@ export default function({ getService }: FtrProviderContext) { }, ]; - // FLAKY: https://github.com/elastic/kibana/issues/59419 - describe.skip('job on data set with date_nanos time field', function() { + describe('job on data set with date_nanos time field', function() { this.tags(['smoke', 'mlqa']); before(async () => { await esArchiver.load('ml/event_rate_nanos'); diff --git a/x-pack/test/functional/services/machine_learning/job_wizard_common.ts b/x-pack/test/functional/services/machine_learning/job_wizard_common.ts index 38e6694669c1a7..70d576a3d847b7 100644 --- a/x-pack/test/functional/services/machine_learning/job_wizard_common.ts +++ b/x-pack/test/functional/services/machine_learning/job_wizard_common.ts @@ -280,11 +280,13 @@ export function MachineLearningJobWizardCommonProvider( withAdvancedSection: sectionOptions.withAdvancedSection, })) === false ) { - await testSubjects.clickWhenNotDisabled(subj); + await retry.tryForTime(5 * 1000, async () => { + await testSubjects.clickWhenNotDisabled(subj); + await this.assertDedicatedIndexSwitchCheckedState(true, { + withAdvancedSection: sectionOptions.withAdvancedSection, + }); + }); } - await this.assertDedicatedIndexSwitchCheckedState(true, { - withAdvancedSection: sectionOptions.withAdvancedSection, - }); }, async assertModelMemoryLimitInputExists(