diff --git a/apps/desktop/src/app/hud/transcript-band.test.tsx b/apps/desktop/src/app/hud/transcript-band.test.tsx index e74ba1c474..5153d1329f 100644 --- a/apps/desktop/src/app/hud/transcript-band.test.tsx +++ b/apps/desktop/src/app/hud/transcript-band.test.tsx @@ -6,15 +6,7 @@ import { stubResizeObserver } from '@/test/jsdom' import { useHudTranscriptBand } from './transcript-band' -function Harness({ - children, - withThreadContent = true, - withViewport -}: { - children?: ReactNode - withThreadContent?: boolean - withViewport: boolean -}) { +function Harness({ children, withViewport }: { children?: ReactNode; withViewport: boolean }) { const ref = useRef(null) useHudTranscriptBand(ref) @@ -24,7 +16,7 @@ function Harness({
{withViewport && (
- {withThreadContent &&
{children ??
row
}
} +
{children ??
row
}
)}
@@ -90,6 +82,7 @@ describe('useHudTranscriptBand', () => { // short session at --hud-band-height: 0px and clips the transcript. it('measures a TurnRow with data-slot="aui_message-group" as transcript height', () => { stubMeasuredRects() + const { container } = render(
turn
@@ -99,19 +92,9 @@ describe('useHudTranscriptBand', () => { expect(bandHeight(container)).toBeGreaterThan(0) }) - it('still measures slot-less direct children such as show-earlier', () => { - stubMeasuredRects() - const { container } = render( - - - - ) - - expect(bandHeight(container)).toBeGreaterThan(0) - }) - it('does not treat clearance or background-resume spacers as message rows', () => { stubMeasuredRects() + const { container } = render(
resume
@@ -121,11 +104,4 @@ describe('useHudTranscriptBand', () => { expect(bandHeight(container)).toBe(0) }) - - it('keeps an empty band when aui_thread-content is missing', () => { - stubMeasuredRects() - const { container } = render() - - expect(bandHeight(container)).toBe(0) - }) })