fix(ui-conversation): keep composer visible across views

This commit is contained in:
_Kerman
2026-07-29 11:30:50 +08:00
parent 69aa58d31b
commit 5939355b1a
6 changed files with 11 additions and 13 deletions

View File

@@ -217,8 +217,8 @@ describe('ConversationRoot resident composer', () => {
expect(b.view.getByTestId('view-chat')).toBeTruthy()
})
it('keeps pending takeover interaction accessible outside the Chat view', () => {
const b = mount(conversationSnapshot({ pending: [{} as never] }))
it('keeps the composer accessible under the Trajectory view', () => {
const b = mount(conversationSnapshot())
act(() => { b.chat.actions.setView('trajectory') })
expect(b.view.getByTestId('view-trajectory')).toBeTruthy()
expect(b.view.getByRole('textbox')).toBeTruthy()