Skip to content

Commit

Permalink
[ML] Functional tests - stabilize DFA job type check
Browse files Browse the repository at this point in the history
  • Loading branch information
pheyos committed Aug 10, 2020
1 parent c6c300e commit 683d6be
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,16 @@ export function MachineLearningDataFrameAnalyticsCreationProvider(
},

async assertJobTypeSelection(expectedSelection: string) {
const actualSelection = await testSubjects.getAttribute(
'mlAnalyticsCreateJobWizardJobTypeSelect',
'value'
);
expect(actualSelection).to.eql(
expectedSelection,
`Job type selection should be '${expectedSelection}' (got '${actualSelection}')`
);
await retry.tryForTime(5000, async () => {
const actualSelection = await testSubjects.getAttribute(
'mlAnalyticsCreateJobWizardJobTypeSelect',
'value'
);
expect(actualSelection).to.eql(
expectedSelection,
`Job type selection should be '${expectedSelection}' (got '${actualSelection}')`
);
});
},

async selectJobType(jobType: string) {
Expand Down

0 comments on commit 683d6be

Please sign in to comment.