Skip to content

Commit

Permalink
re-enable tests. retry on fail (#72061)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 committed Jul 17, 2020
1 parent ac9178a commit 260eb13
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ export const AnalysisFieldsTable: FC<{
return (
<Fragment>
<EuiFormRow
data-test-subj="mlAnalyticsCreateJobWizardIncludesTable"
label={i18n.translate('xpack.ml.dataframe.analytics.create.includedFieldsLabel', {
defaultMessage: 'Included fields',
})}
Expand Down
3 changes: 1 addition & 2 deletions x-pack/test/functional/apps/ml/data_frame_analytics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
import { FtrProviderContext } from '../../../ftr_provider_context';

export default function ({ loadTestFile }: FtrProviderContext) {
// flaky tests
describe.skip('data frame analytics', function () {
describe('data frame analytics', function () {
this.tags(['mlqa', 'skipFirefox']);

loadTestFile(require.resolve('./outlier_detection_creation'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ export function MachineLearningDataFrameAnalyticsCreationProvider(
},

async assertIncludeFieldsSelectionExists() {
await testSubjects.existOrFail('mlAnalyticsCreateJobWizardIncludesSelect', { timeout: 5000 });
await testSubjects.existOrFail('mlAnalyticsCreateJobWizardIncludesTable', { timeout: 8000 });

await retry.tryForTime(8000, async () => {
await testSubjects.existOrFail('mlAnalyticsCreateJobWizardIncludesSelect');
});
},

// async assertIncludedFieldsSelection(expectedSelection: string[]) {
Expand Down

0 comments on commit 260eb13

Please sign in to comment.