test(client): align remaining navigation refresh expectations
This commit is contained in:
1 parent
045e2f9360
commit
42f9a76b77
2 files changed
+3
-6
No files matched your search
@@ -943,7 +943,7 @@ describe('SubagentHeaderLineage', () => {
|
||||
|
||||
hoverCatalog(screen.getByRole('button', { name: '切换子代理:indexer' }))
|
||||
|
||||
expect(input.refreshProjection).toHaveBeenCalledWith(CHILD)
|
||||
expect(input.refreshProjection).not.toHaveBeenCalled()
|
||||
const current = screen.getByRole('treeitem', { name: /indexer/ })
|
||||
expect(current.getAttribute('aria-current')).toBe('true')
|
||||
expect(within(current).getByText('indexer').className).toContain('currentLabel')
|
||||
|
||||
@@ -300,7 +300,7 @@ describe('UiWorkspaceService', () => {
|
||||
b.uiWorkspace.openSession(sid('target'))
|
||||
expect(b.selectPanel).toHaveBeenCalledWith(null)
|
||||
expect(b.sessions.retain).toHaveBeenCalledWith(sid('target'), { source: 'mainView' })
|
||||
expect(b.sessions.refreshProjections).toHaveBeenCalledWith(sid('target'))
|
||||
expect(b.sessions.refreshProjections).not.toHaveBeenCalled()
|
||||
})
|
||||
|
||||
it('keeps the current panel when retaining the target fails', () => {
|
||||
@@ -827,10 +827,7 @@ describe('UiWorkspaceService', () => {
|
||||
})
|
||||
|
||||
expect(b.sessions.retain).toHaveBeenCalledExactlyOnceWith(address, { source: 'mainView' })
|
||||
expect(b.sessions.refreshProjections.mock.calls).toEqual([
|
||||
[address.parentSessionId],
|
||||
[address.childSessionId],
|
||||
])
|
||||
expect(b.sessions.refreshProjections).not.toHaveBeenCalled()
|
||||
})
|
||||
|
||||
it('persists a catalog-resolved address after string subagent navigation', () => {
|
||||
|
||||
Reference in new issue
Block a user