feat(chat): simplify teacher pane and color follow-up cards

This commit is contained in:
鲨鱼辣椒
2026-09-28 12:43:39 +08:00
parent 80c9c0d683
commit 862477f9d4
8 changed files with 51 additions and 38 deletions

View File

@@ -297,7 +297,8 @@ describe('CodingChatPanel first Conversation', () => {
expect(operationInput).toHaveValue('我想先自己试一试');
fireEvent.click(screen.getByRole('button', { name: '智能体', exact: true }));
const teacherInput = await screen.findByRole('textbox', { name: '向智能体提问' });
const teacherPanel = await screen.findByRole('complementary', { name: '智能体咨询' });
const teacherInput = within(teacherPanel).getByRole('textbox', { name: '向智能体提问' });
expect(workTab).toHaveAttribute('aria-selected', 'true');
expect(operationInput).not.toBeVisible();
expect(operationInput).toHaveValue('我想先自己试一试');