Skip to content

Commit

Permalink
[ML] Functional tests - stabilize import job test
Browse files Browse the repository at this point in the history
  • Loading branch information
pheyos committed Sep 13, 2021
1 parent 15a31a1 commit ceaf75c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-pack/test/functional/services/ml/stack_management_jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function MachineLearningStackManagementJobsProvider(
},

async executeSync() {
await testSubjects.click('mlJobMgmtSyncFlyoutSyncButton', 2000);
await testSubjects.clickWhenNotDisabled('mlJobMgmtSyncFlyoutSyncButton', { timeout: 5000 });

// check and close success toast
const resultToast = await toasts.getToastElement(1);
Expand Down Expand Up @@ -285,7 +285,7 @@ export function MachineLearningStackManagementJobsProvider(
},

async importJobs() {
await testSubjects.click('mlJobMgmtImportImportButton', 1000);
await testSubjects.clickWhenNotDisabled('mlJobMgmtImportImportButton', { timeout: 5000 });
await testSubjects.missingOrFail('mlJobMgmtImportJobsFlyout', { timeout: 60 * 1000 });
},

Expand Down Expand Up @@ -340,7 +340,7 @@ export function MachineLearningStackManagementJobsProvider(
},

async selectExportJobs() {
await testSubjects.click('mlJobMgmtExportExportButton');
await testSubjects.clickWhenNotDisabled('mlJobMgmtExportExportButton', { timeout: 5000 });
await testSubjects.missingOrFail('mlJobMgmtExportJobsFlyout', { timeout: 60 * 1000 });
},

Expand Down

0 comments on commit ceaf75c

Please sign in to comment.