|
@@ -914,7 +914,7 @@ describe('ChatView', () => {
|
|
|
const view = render(<h.ChatView {...h.props} />)
|
|
const view = render(<h.ChatView {...h.props} />)
|
|
|
expect(view.getByTestId('tool-seat-r1')).toBeTruthy()
|
|
expect(view.getByTestId('tool-seat-r1')).toBeTruthy()
|
|
|
expect(h.toolOwners[0]?.block).toMatchObject({ callId: 'r1', argsRaw: '{"command":"cmd-r1"}' })
|
|
expect(h.toolOwners[0]?.block).toMatchObject({ callId: 'r1', argsRaw: '{"command":"cmd-r1"}' })
|
|
|
- expect(view.getByRole('status').textContent).toBe('正在深入处理…')
|
|
|
|
|
|
|
+ expect(view.getByRole('status').textContent).toBe('深度求索中...')
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
it('keeps the Tool renderer mounted when a running call settles into log order', () => {
|
|
it('keeps the Tool renderer mounted when a running call settles into log order', () => {
|
|
@@ -974,7 +974,7 @@ describe('ChatView', () => {
|
|
|
const view = render(<h.ChatView {...h.props} />)
|
|
const view = render(<h.ChatView {...h.props} />)
|
|
|
// Freshly mounted (as after a reload) yet already past the 15s gate.
|
|
// Freshly mounted (as after a reload) yet already past the 15s gate.
|
|
|
const status = view.getByRole('status')
|
|
const status = view.getByRole('status')
|
|
|
- expect(status.textContent).toMatch(/^正在深入处理…2分0\d秒$/)
|
|
|
|
|
|
|
+ expect(status.textContent).toMatch(/^深度求索中\.\.\.2分0\d秒$/)
|
|
|
expect(status.querySelector('[aria-hidden="true"]')).not.toBeNull()
|
|
expect(status.querySelector('[aria-hidden="true"]')).not.toBeNull()
|
|
|
act(() => {
|
|
act(() => {
|
|
|
h.setSession({ queue: [{
|
|
h.setSession({ queue: [{
|
|
@@ -986,7 +986,7 @@ describe('ChatView', () => {
|
|
|
text: 'also',
|
|
text: 'also',
|
|
|
}] })
|
|
}] })
|
|
|
})
|
|
})
|
|
|
- expect(status.textContent).toMatch(/^正在深入处理…2分0\d秒$/)
|
|
|
|
|
|
|
+ expect(status.textContent).toMatch(/^深度求索中\.\.\.2分0\d秒$/)
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
it('hands each ordered root call to the keyed business-node slot', () => {
|
|
it('hands each ordered root call to the keyed business-node slot', () => {
|