Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dataset Quality] Fix flaky summary test #186618

Merged
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