Skip to content

Commit

Permalink
[7.x] [Reporting] Re-enable test for large CSV export from Discover (#…
Browse files Browse the repository at this point in the history
…113675) (#114374)

* [Reporting] Re-enable test for large CSV export from Discover (#113675)

* [Reporting] Re-enable test for large CSV export from Discover

* update snapshot

Co-authored-by: Kibana Machine <[email protected]>

* update snapshots

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
tsullivan and kibanamachine authored Oct 11, 2021
1 parent 26e7670 commit dc4f956
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 3 deletions.
65 changes: 65 additions & 0 deletions x-pack/test/functional/apps/discover/__snapshots__/reporting.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions x-pack/test/functional/apps/discover/reporting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
expect(res.text).to.be(`\n`);
});

// FIXME: https://github.com/elastic/kibana/issues/112186
it.skip('generates a large export', async () => {
it('generates a large export', async () => {
const fromTime = 'Apr 27, 2019 @ 23:56:51.374';
const toTime = 'Aug 23, 2019 @ 16:18:51.821';
await PageObjects.timePicker.setAbsoluteRange(fromTime, toTime);
Expand All @@ -112,7 +111,7 @@ 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(4954749);
expect(csvFile.length).to.be(5107481);
expectSnapshot(csvFile.slice(0, 5000)).toMatch();
expectSnapshot(csvFile.slice(-5000)).toMatch();
});
Expand Down

0 comments on commit dc4f956

Please sign in to comment.