Open
Description
Currently vega charts are all rendered using vega view, which when rendered on a page, just produces a single canvas
html element. This limits being able to validate what is actually being rendered and if certain datapoints are visible as expected or not. vislib
-implemented charts do not have this problem as each datapoint / legend / axis are separate elements and can be validated by a test runner (cypress).
A few potential options are:
- introduce an image comparison testing framework in the functional-test repo to compare generated chart canvas images with persisted ones and find any mismatches
- explore if validation on the source datatable can be relied upon as enough sufficient validation
- explore different ways to render vega charts and if the individual datapoints can be surfaced in html
Ideally we can come up with a final plan and have it documented, then begin adding consistent validation testing on all existing tests that are generating vega-implemented charts.