Skip to content

Commit

Permalink
[Dataset Quality] Fix flaky summary test (elastic#186618)
Browse files Browse the repository at this point in the history
## Summary

Closes elastic#186549
  • Loading branch information
achyutjhunjhunwala authored and bhapas committed Jun 24, 2024
1 parent d3de968 commit abbd938
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default function ({ getService, getPageObjects }: DatasetQualityFtrProvid

describe('Dataset quality summary', () => {
before(async () => {
await synthtrace.index(getInitialTestLogs({ to, count: 4 }));
await PageObjects.datasetQuality.navigateTo();
});

Expand All @@ -57,8 +58,6 @@ export default function ({ getService, getPageObjects }: DatasetQualityFtrProvid
});

it('shows poor, degraded and good count as 0 and all dataset as healthy', async () => {
await synthtrace.index(getInitialTestLogs({ to, count: 4 }));
await PageObjects.datasetQuality.refreshTable();
const summary = await PageObjects.datasetQuality.parseSummaryPanel();
expect(summary).to.eql({
datasetHealthPoor: '0',
Expand Down
3 changes: 2 additions & 1 deletion x-pack/test/functional/page_objects/dataset_quality.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ export function DatasetQualityPageObject({ getPageObjects, getService }: FtrProv

async refreshTable() {
const filtersContainer = await testSubjects.find(
testSubjectSelectors.datasetQualityFiltersContainer
testSubjectSelectors.datasetQualityFiltersContainer,
20 * 1000
);
const refreshButton = await filtersContainer.findByTestSubject(
testSubjectSelectors.superDatePickerApplyTimeButton
Expand Down

0 comments on commit abbd938

Please sign in to comment.