A “flaky” visual test is almost never the pixel comparator. It is the page changing by itself between two captures, and the diff, correctly, points at the difference.
Screenshot diff that does not cry wolf.
R$ 47,00: instant delivery
A layout gate reporting a text collision inside an <a> that sits inside the
<p> is reporting the parent/child pair, not a defect. Before “fixing” the CSS,
measure the fact: scrollWidth == clientWidth at the target viewport. If it holds, the
finding belongs to the gate.
Rule: every false positive you accept without measuring becomes a “fix” that breaks the real layout.
Run the gate twice in a row on the same machine. If the two runs disagree, the problem is capture determinism, and no tolerance threshold fixes that without hiding a real bug.
See the Visual Regression Gates skill See all skills
Want this wired into your project? Guided setup from R$ 1.500, with the first cycle run together.
The 15 chapters of O agente que não mente (ebook) are these texts, in order: PDF in English and Portuguese, R$ 37,00, instant delivery.
Sent when I publish, together with the free skill used here. No spam, one-click unsubscribe.
I am also here: Portfolio · LifeLog (personal blog) · X