Skip to content

Commit

Permalink
further test improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Sep 16, 2020
1 parent fb025a1 commit 252c1c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,13 @@ export default function ({ getService }: FtrProviderContext) {
};
}

const calendarId = `wizard-test-calendar_${Date.now()}`;

describe('single metric without datafeed start', function () {
this.tags(['mlqa']);
before(async () => {
await esArchiver.loadIfNeeded('ml/farequote');
await ml.testResources.createIndexPatternIfNeeded('ft_farequote', '@timestamp');
await ml.testResources.setKibanaTimeZoneToUTC();

await ml.api.createCalendar(calendarId);
await ml.securityUI.loginAsMlPowerUser();
});

Expand Down Expand Up @@ -134,7 +131,7 @@ export default function ({ getService }: FtrProviderContext) {
await ml.jobWizardCommon.toggleStartDatafeedSwitch(false);

await ml.jobWizardCommon.assertCreateJobButtonExists();
await ml.jobWizardCommon.createJobAndDoNotWaitForCompletion();
await ml.jobWizardCommon.createJobWithoutDatafeedStart();

await ml.jobTable.waitForJobsToLoad();
await ml.jobTable.filterWithSearchString(jobId, 1);
Expand Down
3 changes: 2 additions & 1 deletion x-pack/test/functional/services/ml/job_wizard_common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,9 @@ export function MachineLearningJobWizardCommonProvider(
await testSubjects.existOrFail('mlJobWizardButtonRunInRealTime', { timeout: 2 * 60 * 1000 });
},

async createJobAndDoNotWaitForCompletion() {
async createJobWithoutDatafeedStart() {
await testSubjects.clickWhenNotDisabled('mlJobWizardButtonCreateJob');
await testSubjects.existOrFail('mlPageJobManagement');
},
};
}

0 comments on commit 252c1c7

Please sign in to comment.