更新最终预览框线测试语义

无框线场景不再传入选中节点以匹配选中态高亮规则

保留显式 showFrame 时的选中框与控制点断言
This commit is contained in:
2026-09-18 22:08:53 +08:00
parent 1679e72deb
commit aaa2eb482a
@@ -219,9 +219,7 @@ describe('UI tree preview visibility', () => {
});
it('shows final-preview node frames and resize handles only when requested', () => {
const withoutFrames = renderTree('final-preview', new Set(), {
selectedNodeId: 'child',
});
const withoutFrames = renderTree('final-preview', new Set());
const plainChild = withoutFrames.container.querySelector(
'[data-node-id="child"]',
) as HTMLDivElement;