Commit 4351a2d
test: make percy-disabled and responsive-height tests CI-deterministic
The new PercyLogicTest cases passed locally (no Percy CLI) but failed on CI
where `percy exec` runs a live CLI:
- screenshotReturnsNullWhenPercyDisabled relied on isPercyEnabled defaulting
to false; under percy exec the healthcheck enables it. Force isPercyEnabled
=false via reflection so the disabled-path assertion is deterministic.
- resolveResponsiveTargetHeightHonoursFeatureFlag's no-minHeight branch read
cliConfig.snapshot.minHeight (1024 on CI). Clear cliConfig so it falls back
to currentHeight as intended.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent b271085 commit 4351a2d
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
138 | | - | |
| 140 | + | |
139 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
140 | 145 | | |
141 | 146 | | |
142 | 147 | | |
| |||
369 | 374 | | |
370 | 375 | | |
371 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
372 | 381 | | |
373 | 382 | | |
374 | 383 | | |
| |||
0 commit comments