Commit 74e61d6
fix(visual-diff): reduce false positives and cache prod screenshots (#1397)
- Freeze CSS animations/transitions via injected stylesheet before
capturing to eliminate mid-animation pixel differences
- Replace details expansion click+timeout with direct open attribute
set and waitForFunction poll to avoid framework re-render races
- Switch waitUntil from networkidle to load for faster, deterministic
page readiness
- Add --disable-font-subpixel-positioning and --disable-lcd-text
Chromium flags for consistent text rasterization across captures
- Skip prod screenshot when file already exists on disk; pair with
a workflow cache keyed on the production sitemap SHA-256 hash so
prod pages are only re-screenshotted when the live site changes
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 19c671c commit 74e61d6
File tree
2 files changed
+43
-9
lines changed- .github/workflows
- scripts
2 files changed
+43
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
211 | 225 | | |
212 | 226 | | |
213 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
102 | 115 | | |
103 | 116 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 117 | + | |
109 | 118 | | |
110 | 119 | | |
111 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
112 | 126 | | |
113 | 127 | | |
114 | 128 | | |
| |||
201 | 215 | | |
202 | 216 | | |
203 | 217 | | |
204 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
205 | 221 | | |
206 | 222 | | |
207 | 223 | | |
| |||
220 | 236 | | |
221 | 237 | | |
222 | 238 | | |
223 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
224 | 244 | | |
225 | 245 | | |
226 | 246 | | |
| |||
0 commit comments