fix(workspace): give the compact-label row spec the pin/archive props
This commit is contained in:
1 parent
3e96ed79a7
commit
bd0461c894
1 file changed
+2
-2
@@ -559,10 +559,10 @@ describe('workspace browser rows', () => {
|
||||
const node: SessionNode = {
|
||||
id: sid(pendingInteraction), title: 'Needs input', blank: false,
|
||||
pendingInteraction, running: false, runningSubagentCount: 0, completed: false,
|
||||
hasActiveSchedule: false, updatedAt: 0,
|
||||
hasActiveSchedule: false, updatedAt: 0, pinned: false, archived: false,
|
||||
}
|
||||
render(<SessionNodeItem node={node} currentId={undefined} now={0} onOpen={vi.fn()}
|
||||
onRename={vi.fn()} onFork={vi.fn()} onArchive={vi.fn()} t={tEn} />)
|
||||
onRename={vi.fn()} onFork={vi.fn()} onArchive={vi.fn()} onUnarchive={vi.fn()} onPin={vi.fn()} t={tEn} />)
|
||||
const row = screen.getByRole('treeitem')
|
||||
expect(screen.getByText('Needs input').nextElementSibling?.textContent).toBe(compactLabel)
|
||||
expect(screen.getByText('Needs input').nextElementSibling?.getAttribute('aria-hidden')).toBe('true')
|
||||
|
||||
Reference in new issue
Block a user