Skip to content

Commit

Permalink
Remove validations of CSV file for test
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Nov 7, 2023
1 parent 5854e9c commit a8eb680
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions x-pack/test/functional/apps/discover/reporting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await textInput.clearValue();
});

// Flaky https://github.com/elastic/kibana/issues/112164
it.skip('generates a report from a new search with data: default', async () => {
it('generates a report from a new search with data: default', async () => {
await PageObjects.discover.clickNewSearchButton();
await PageObjects.reporting.setTimepickerInEcommerceDataRange();

Expand Down Expand Up @@ -168,8 +167,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
// match file length, the beginning and the end of the csv file contents
const { text: csvFile } = await getReport();
expect(csvFile.length).to.be(4826973);
expectSnapshot(csvFile.slice(0, 5000)).toMatch();
expectSnapshot(csvFile.slice(-5000)).toMatch();

/*
* NOTE: This test can not check against the snapshot. Data ingestion from
* the ES archive is concurrent and dynamic, and affects the search output
*/
});
});

Expand Down

0 comments on commit a8eb680

Please sign in to comment.