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

Remove validations of CSV file for test #2

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading