'How to test component visually

For the gantt chart above, I want to make sure that the edge does not disconnect from the bar (red portion) is there a way to test it visually automatically (if yes any tool and way for that) ? (Or we need to explicityly say that end of edge must be equal to start of bar in test code like jest?)

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source