Repository navigation
fix: test side comment growth against its window boundary - #4618
Conversation
|
#4569 has the same stale whole-width boundary as #4568 and belongs with this repair. I reproduced its exact diagnostic on main at Changing only the foot = page.evaluate(
"""async () => {
const {left, right} = document.querySelector('.lf-fab-bar')
.getBoundingClientRect();
return (await window.__lfWidgetApi())
.shownWindow({gap: 8, across: {left, right}}).bottom;
}"""
)The focused node fails before this correction and passes afterward at normal speed and with |
|
Merged after confirming that both corrected growth tests pass locally and in the terminal CI run. CI's remaining failure was a shift-watch teardown error in the independent pending-margin-reply smoke test: its copy button moved by |
The side-comment growth tests still used the floating panel's top as the margin's bottom boundary after #4555 allowed surfaces beside the panel to reach the window foot. This left the fixtures short of the actual growth boundary: the six-line draft stopped at 879px against an expected 834px, and the animation test grew downward while expecting its top to rise.
Position the low passage relative to the window foot and read the available room across the composer's columns with
shownWindow({across}). Both tests retain their growth, scrolling, and animation assertions. This changes only the tests and preserves #4555's placement behavior.Both focused tests reproduce their reported failures before correction and pass afterward at normal speed.
git diff --checkpasses.Closes #4568
Closes #4569