-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Validate mocks - first step #4762
Conversation
@alexcjohnson let's review this once shape-drawing is done :) |
@archmoj I just had a quick look at this - very nice! Let's not touch it until 1.54.0 is released, but as this doesn't impact features at all we can include it in a patch after that. My primary question is about the hard-coded list in
|
@alexcjohnson |
🍻 fair enough - added to #4733 so we address it before considering that issue closed. This looks great. You currently have the require statements for the mocks all commented out - can we enable the ones you've fixed already, just comment out the still-failing ones, and call this PR done? |
Done in efd8518. |
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.
💃
In addition to heavy cleanup and updating (by applying some non-deprecated attributes e.g. title object), this PR adds jasmine tests for validating all current mocks using
Plotly.validate
.The test called
mock_test
is drafted in commit 8c1a9d9 which currently bypassesundefined layout
,invisible traces
,coloraxis
,dynamic
e.g.textposition
arrays.With this relaxation,
before modifying any mocks running the test resulted in
TOTAL: 1014 | FAILED: 487 | SUCCESS: 527
After updating the mocks the situation improved as listed below:
TOTAL: 1014 | FAILED: 174 | SUCCESS: 840.
@alexcjohnson
cc: @plotly/plotly_js
cc: #4733