@@ -307,6 +307,7 @@ def test_compact_tool_fan_uses_shell_local_anchor_not_fixed_viewport_position():
307307
308308 assert "position: absolute;" in fan_block
309309 assert "--compact-tool-wheel-hover-radius: 116px;" in fan_block
310+ assert "--compact-tool-wheel-orbit-radius: 80px;" in fan_block
310311 assert "--compact-tool-fan-focus-x: var(--compact-tool-wheel-hover-radius);" in fan_block
311312 assert "--compact-tool-fan-focus-y: var(--compact-tool-wheel-hover-radius);" in fan_block
312313 assert "--compact-tool-wheel-center-x: var(--compact-tool-wheel-hover-radius);" in fan_block
@@ -353,10 +354,10 @@ def test_compact_tool_fan_uses_shell_local_anchor_not_fixed_viewport_position():
353354 assert '.compact-input-tool-item[data-compact-tool-wheel-slot="hidden"]' in styles
354355 assert '.compact-input-tool-item[data-compact-tool-wheel-slot="hidden-forward"]' in styles
355356 assert '.compact-input-tool-item[data-compact-tool-wheel-slot="hidden-backward"]' in styles
356- assert "rotate(107.35deg) translateX(91.92px ) rotate(-107.35deg)" in styles
357- assert "rotate(-17.35deg) translateX(91.92px ) rotate(17.35deg)" in styles
358- assert "rotate(-48.51deg) translateX(91.92px ) rotate(48.51deg)" in styles
359- assert "rotate(138.51deg) translateX(91.92px ) rotate(-138.51deg)" in styles
357+ assert "rotate(107.35deg) translateX(var(--compact-tool-wheel-orbit-radius) ) rotate(-107.35deg)" in styles
358+ assert "rotate(-17.35deg) translateX(var(--compact-tool-wheel-orbit-radius) ) rotate(17.35deg)" in styles
359+ assert "rotate(-48.51deg) translateX(var(--compact-tool-wheel-orbit-radius) ) rotate(48.51deg)" in styles
360+ assert "rotate(138.51deg) translateX(var(--compact-tool-wheel-orbit-radius) ) rotate(-138.51deg)" in styles
360361 assert "translateX(83.82px)" not in wheel_block
361362 assert "translateX(89.74px)" not in wheel_block
362363 assert "translateX(92.06px)" not in wheel_block
@@ -776,6 +777,14 @@ def test_compact_history_hit_contract_keeps_transparent_wrappers_out_of_hit_regi
776777 'className="compact-export-history-scroll-content"' ,
777778 1 ,
778779 )[0 ]
780+ message_hit_block = panel_source .split ('className="compact-export-history-bubble"' , 1 )[1 ].split (
781+ 'compact-export-history-check' ,
782+ 1 ,
783+ )[0 ]
784+ controls_hit_block = panel_source .split ('className="compact-export-history-controls"' , 1 )[1 ].split (
785+ 'compact-export-history-controls-content' ,
786+ 1 ,
787+ )[0 ]
779788
780789 assert "pointer-events: none;" in anchor_block
781790 assert "pointer-events: none;" in panel_block
@@ -789,8 +798,12 @@ def test_compact_history_hit_contract_keeps_transparent_wrappers_out_of_hit_regi
789798 assert "function getCompactHistoryScrollbarRect(element, parentRect)" in script
790799 assert "id: 'history:scrollbar'" in script
791800 assert "data-compact-hit-region" not in scroll_jsx_block
792- assert 'data-compact-hit-region-id={`history:message:${message.id}`}' in panel_source
793- assert 'data-compact-hit-region-id="history:controls"' in panel_source
801+ assert 'data-compact-hit-region-id={historyInteractive ? `history:message:${message.id}` : undefined}' in panel_source
802+ assert "data-compact-hit-region={historyInteractive ? 'true' : undefined}" in message_hit_block
803+ assert "data-compact-hit-region-kind={historyInteractive ? 'message' : undefined}" in message_hit_block
804+ assert "data-compact-hit-region-id={historyInteractive ? 'history:controls' : undefined}" in panel_source
805+ assert "data-compact-hit-region={historyInteractive ? 'true' : undefined}" in controls_hit_block
806+ assert "data-compact-hit-region-kind={historyInteractive ? 'controls' : undefined}" in controls_hit_block
794807 assert 'data-compact-hit-region-id="history:preview"' in panel_source
795808
796809
0 commit comments