-
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] Enable CI test coverage for generated PDFs #191559
base: main
Are you sure you want to change the base?
[Reporting] Enable CI test coverage for generated PDFs #191559
Conversation
Pinging @elastic/appex-sharedux (Team:SharedUX) |
d4b37e5
to
4cf61d5
Compare
58fc6ad
to
aaaebe6
Compare
💔 Build FailedFailed CI StepsTest Failures
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
await comparePdf(sessionReportPath, baselinePath, { | ||
compareThreshold: 0.035, | ||
}) | ||
).to.be(true); |
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.
I'm not satisfied that a test failure yields the message Expected "false" to be "true"
, unfortunately it isn't the nature of pdf-visual-compare
to yield an actual percentage of difference. That is something we do get with the compare PNG method. This PR should be reworked to use something more like an older solution that was previously explored.
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
Summary
Closes #117814
Revival of #113910
Blocked by https://github.com/elastic/kibana-operations/issues/193
This PR introduces https://github.com/dichovsky/pdf-visual-compare to the dev dependencies, and adds a single test to verify a PDF from the Dashboard app. If successful, we will add more tests that include multi-page PDF, and cover Canvas app and more.
STATUS: Since the module introduced in this PR has an indirect dependency on node-canvas, this is blocked on a request with @elastic/kibana-operations to make node-canvas prebuilds available to Kibana developers. Without that, node-canvas would require prebuilds to compile locally which creates a negative experience for developers.