[Chartjs]-Testing Automation on charts.js and angular 14

0👍

In the end I decided to do screenshot comparison
Thanks for the help

2👍

You can use the static Chart.getChart method:

const chart = Chart.getChart(canvasId);
const data = chart.data.datasets[0].data;

0👍

You can access the component’s data using ng.getComponent(document.getElementsByTagName('chart-dataset')[0])

also, after running this code, ngContext becomes an object.

Leave a comment