-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
fix: Chart download as image issue #19885
fix: Chart download as image issue #19885
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.
Can we add a test for this? Maybe a cypress one?
/testenv up |
@yousoph Ephemeral environment spinning up at http://54.200.13.34:8080. Credentials are |
Codecov Report
@@ Coverage Diff @@
## master #19885 +/- ##
==========================================
- Coverage 66.55% 66.52% -0.04%
==========================================
Files 1692 1714 +22
Lines 64802 65032 +230
Branches 6657 6717 +60
==========================================
+ Hits 43129 43260 +131
- Misses 19973 20065 +92
- Partials 1700 1707 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Quick testing on the ephemeral env looks good |
Ephemeral environment shutdown and build artifacts deleted. |
@codemaster08240328 will be adding tests later in a separate PR. |
(cherry picked from commit c2999fd)
🏷️ preset:2022.17 |
SUMMARY
This pr resolves the issue which is about downloading chart as image.
Why this issue happened:
We were passing wrong query selector for chart element to
downloadAsImage()
function, which returned undefined fromdocument.querySelector()
.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
Expected result:
Should be able to see the downloaded image of chart.
ADDITIONAL INFORMATION