Repository navigation
Commit b659d08
committed
fix: capture scroll anchor before delayed callback
The generate-complete scroll used a bare setTimeout that dereferenced
document after up to 100ms. Under slower CI workers the callback fired
after the test environment tore down, surfacing as an unhandled
ReferenceError: document is not defined and failing the run even with
every test and coverage gate passing. Capturing the element
synchronously removes the teardown race without changing app behavior.1 parent 35ce7e2 commit b659d08
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
0 commit comments