Skip to content

Commit

Permalink
[ML] Functional tests - stabilize summary count field input (#85974) (#…
Browse files Browse the repository at this point in the history
…86082)

This PR stabilizes the summary count field input by adding a retry.
  • Loading branch information
pheyos authored Dec 16, 2020
1 parent 64ab395 commit 329b51e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x-pack/test/functional/services/ml/job_wizard_advanced.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,10 @@ export function MachineLearningJobWizardAdvancedProvider(
},

async selectSummaryCountField(identifier: string) {
await comboBox.set('mlSummaryCountFieldNameSelect > comboBoxInput', identifier);
await this.assertSummaryCountFieldSelection([identifier]);
await retry.tryForTime(15 * 1000, async () => {
await comboBox.set('mlSummaryCountFieldNameSelect > comboBoxInput', identifier);
await this.assertSummaryCountFieldSelection([identifier]);
});
},

async assertAddDetectorButtonExists() {
Expand Down

0 comments on commit 329b51e

Please sign in to comment.