Skip to content

Commit

Permalink
Update more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jughosta committed Jun 10, 2024
1 parent 7e75e63 commit e7b9e2f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
'keyword',
'date',
'_id',
'_ignored',
'_index',
'',
'_source',
'text',
]);

// set other filters to check if they get reset after pressing the button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ export default function ({ getService }: FtrProviderContext) {
const { path: downloadPath } = JSON.parse(res.text) as { path: string };
await reportingAPI.waitForJobToFinish(downloadPath);
const csvFile = await reportingAPI.getCompletedJobOutput(downloadPath);
expect((csvFile as string).length).to.be(5381);
expect((csvFile as string).length).to.be(5400);
expectSnapshot(createPartialCsv(csvFile)).toMatch();
});

Expand Down Expand Up @@ -383,7 +383,7 @@ export default function ({ getService }: FtrProviderContext) {
const { path: downloadPath } = JSON.parse(res.text) as { path: string };
await reportingAPI.waitForJobToFinish(downloadPath);
const csvFile = await reportingAPI.getCompletedJobOutput(downloadPath);
expect((csvFile as string).length).to.be(4440);
expect((csvFile as string).length).to.be(4459);
expectSnapshot(createPartialCsv(csvFile)).toMatch();
});
});
Expand Down Expand Up @@ -673,7 +673,7 @@ export default function ({ getService }: FtrProviderContext) {
const { path: downloadPath } = JSON.parse(res.text) as { path: string };
await reportingAPI.waitForJobToFinish(downloadPath);
const csvFile = await reportingAPI.getCompletedJobOutput(downloadPath);
expect((csvFile as string).length).to.be(329);
expect((csvFile as string).length).to.be(356);
expectSnapshot(createPartialCsv(csvFile)).toMatch();
});
});
Expand Down Expand Up @@ -734,7 +734,7 @@ export default function ({ getService }: FtrProviderContext) {
const { path: downloadPath } = JSON.parse(res.text) as { path: string };
await reportingAPI.waitForJobToFinish(downloadPath);
const csvFile = await reportingAPI.getCompletedJobOutput(downloadPath);
expect((csvFile as string).length).to.be(4388);
expect((csvFile as string).length).to.be(4407);
expectSnapshot(createPartialCsv(csvFile)).toMatch();
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export default function ({ getService }: FtrProviderContext) {
);
await reportingAPI.waitForJobToFinish(res.path);
const csvFile = await reportingAPI.getCompletedJobOutput(res.path);
expect((csvFile as string).length).to.be(1267140);
expect((csvFile as string).length).to.be(1270683);
expectSnapshot(createPartialCsv(csvFile)).toMatch();
});

Expand Down Expand Up @@ -387,7 +387,7 @@ export default function ({ getService }: FtrProviderContext) {
);
await reportingAPI.waitForJobToFinish(res.path);
const csvFile = await reportingAPI.getCompletedJobOutput(res.path);
expect((csvFile as string).length).to.be(914755);
expect((csvFile as string).length).to.be(918298);
expectSnapshot(createPartialCsv(csvFile)).toMatch();
});
});
Expand Down Expand Up @@ -677,7 +677,7 @@ export default function ({ getService }: FtrProviderContext) {
);
await reportingAPI.waitForJobToFinish(res.path);
const csvFile = await reportingAPI.getCompletedJobOutput(res.path);
expect((csvFile as string).length).to.be(329);
expect((csvFile as string).length).to.be(356);
expectSnapshot(createPartialCsv(csvFile)).toMatch();
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
'keyword',
'date',
'_id',
'_ignored',
'_index',
'',
'_source',
'text',
]);

// set other filters to check if they get reset after pressing the button
Expand Down

0 comments on commit e7b9e2f

Please sign in to comment.