re-enable tests. retry on fail (#72061)

This commit is contained in:
Melissa Alvarez 2020-07-17 10:56:02 -04:00 committed by GitHub
parent ac9178ab9a
commit 260eb139f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View file

@ -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',
})}

View file

@ -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'));

View file

@ -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[]) {