Skip to content

Commit

Permalink
[ML] Fix types, cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Aug 9, 2022
1 parent c80fc19 commit 48027ef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ export default function ({ getPageObject, getService }: FtrProviderContext) {

await ml.aiops.assertSearchPanelExist();

if (testData.expected.filters) {
await ml.testExecution.logTestStep('displays filters in filter bar correctly');
for (const filter of testData.expected.filters!) {
await ml.aiops.assertFilterBarFilterContent(filter);
}
}

await ml.testExecution.logTestStep('displays empty prompt');
await ml.aiops.assertNoWindowParametersEmptyPromptExist();
});
Expand Down
22 changes: 0 additions & 22 deletions x-pack/test/functional/services/ml/aiops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,28 +56,6 @@ export function MachineLearningAiopsProvider({ getService }: FtrProviderContext)
await testSubjects.existOrFail(`aiopsNoWindowParametersEmptyPrompt`);
},

async assertFilterBarFilterContent(filter: {
key: string;
value: string;
enabled?: boolean;
pinned?: boolean;
negated?: boolean;
}) {
await retry.waitForWithTimeout(
`filter ${JSON.stringify(filter)} to exist`,
2000,
async () => {
return await filterBar.hasFilter(
filter.key,
filter.value,
filter.enabled,
filter.pinned,
filter.negated
);
}
);
},

async navigateToIndexPatternSelection() {
await testSubjects.click('mlMainTab explainLogRateSpikes');
await testSubjects.existOrFail('mlPageSourceSelection');
Expand Down

0 comments on commit 48027ef

Please sign in to comment.