mirror of
https://github.com/stablyai/orca.git
synced 2026-10-14 16:02:57 +00:00
test: cover tab drag root cleanup wiring
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -104,6 +104,19 @@ describe('TabGroupSplitLayout', () => {
|
||||
)
|
||||
})
|
||||
|
||||
it('wires the split layout root to drag cleanup ownership', () => {
|
||||
const element = TabGroupSplitLayout({
|
||||
layout: { type: 'leaf', groupId: 'group-1' },
|
||||
worktreeId: 'wt-1',
|
||||
focusedGroupId: 'group-1',
|
||||
isWorktreeActive: true
|
||||
})
|
||||
|
||||
const layoutWrapper = element.props.children[0]
|
||||
|
||||
expect(layoutWrapper.props.ref).toBe(setDragRootNodeMock)
|
||||
})
|
||||
|
||||
it('only reserves top-right header space for the floating explorer toggle', () => {
|
||||
const element = TabGroupSplitLayout({
|
||||
layout: {
|
||||
|
||||
Reference in New Issue
Block a user