Commit 524f273
fix: simplify domSnapshot preservation test to avoid percy.yield spy issue (PER-7348)
Spying on percy.yield.snapshot doesn't reliably capture the arguments
because percy.yield methods are wrapped with generatePromise. Simplified
the test to verify (a) no 're-capturing from URL' log appears and
(b) the snapshot is captured, which together prove the domSnapshot
was preserved rather than dropped and re-fetched.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 73475d9 commit 524f273
1 file changed
Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5068 | 5068 | | |
5069 | 5069 | | |
5070 | 5070 | | |
5071 | | - | |
| 5071 | + | |
5072 | 5072 | | |
5073 | 5073 | | |
5074 | 5074 | | |
5075 | 5075 | | |
5076 | | - | |
5077 | | - | |
5078 | | - | |
5079 | | - | |
5080 | | - | |
5081 | | - | |
5082 | | - | |
5083 | | - | |
5084 | 5076 | | |
5085 | 5077 | | |
5086 | 5078 | | |
| |||
5089 | 5081 | | |
5090 | 5082 | | |
5091 | 5083 | | |
5092 | | - | |
5093 | | - | |
| 5084 | + | |
| 5085 | + | |
| 5086 | + | |
| 5087 | + | |
| 5088 | + | |
| 5089 | + | |
| 5090 | + | |
| 5091 | + | |
| 5092 | + | |
| 5093 | + | |
5094 | 5094 | | |
5095 | 5095 | | |
5096 | 5096 | | |
| |||
0 commit comments