Skip to content

Code Insights: Fix chart Percy screenshot tests

Created by: vovakulikov

Currently, we have flaky code insights chart screenshot tests. And because of that, we have a lot of false-positive Percy failed pipelines (see screenshot below)

Screenshot 2021-08-04 at 16 11 21

My guess is that flakiness comes from the mouse position (perhaps the initial position is the viewport center) and then insight grid animation is happening and this may trigger tooltip appearance. A possible fix for it is to set mouse position for the visual screenshot tests of the insight grid explicitly.

Merge request reports

Loading