Skip to content

Commit

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

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

* update snapshot

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
tsullivan and kibanamachine committed Oct 7, 2021
1 parent c0b8aa3 commit 6c13358
Showing 1 changed file with 2 additions and 3 deletions.
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(5093456);
expectSnapshot(csvFile.slice(0, 5000)).toMatch();
expectSnapshot(csvFile.slice(-5000)).toMatch();
});
Expand Down

0 comments on commit 6c13358

Please sign in to comment.