-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Reporting] Address Canvas PDF test failing in Cloud #112623
[Reporting] Address Canvas PDF test failing in Cloud #112623
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving to unblock.
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should these be documented constants, or is this specific to this test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is specific to this test - it's essentially a snapshot of the content length of the downloaded PDF file.
💚 Build SucceededMetrics [docs]
To update your PR or re-run it, just comment with: |
Summary
Closes #87713
Updates the functional test to allow the content length of the downloaded Canvas report to be between 20725 and 20726