Skip to content

Commit

Permalink
[Reporting] Address Canvas PDF test failing in Cloud (#112623) (#112628)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan authored Sep 21, 2021
1 parent 8a1cdf7 commit a8394b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/test/functional/apps/canvas/reports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
"
`);

expect(res.get('content-length')).to.be('20725');
const contentLength = parseInt(res.get('content-length'), 10);
expect(contentLength >= 20725 && contentLength <= 20726).to.be(true); // contentLength can be between 20725 and 20726
});

it('downloaded PDF base64 string is correct without borders and logo', async function () {
Expand Down

0 comments on commit a8394b0

Please sign in to comment.