[Reporting] Address Canvas PDF test failing in Cloud (#112623)

This commit is contained in:
Tim Sullivan 2021-09-20 20:35:59 -07:00 committed by GitHub
parent 2c4abee2ac
commit 6980064e5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 () {