feat(chat): show playful teacher introductions on hover
This commit is contained in:
@@ -306,12 +306,14 @@ describe('CodingChatPanel first Conversation', () => {
|
||||
fireEvent.click(chatTab);
|
||||
expect(operationInput).toBeVisible();
|
||||
expect(teacherInput).toHaveValue('怎样判断规则清不清楚?');
|
||||
fireEvent.click(screen.getByRole('button', { name: '关闭智能体' }));
|
||||
fireEvent.click(screen.getByRole('button', { name: '智能体', exact: true }));
|
||||
expect(screen.queryByRole('textbox', { name: '向智能体提问' })).not.toBeInTheDocument();
|
||||
expect(screen.queryByRole('button', { name: '朋友', exact: true })).not.toBeInTheDocument();
|
||||
fireEvent.click(screen.getByRole('button', { name: '智能体', exact: true }));
|
||||
expect(screen.getByRole('textbox', { name: '向智能体提问' })).toHaveValue('怎样判断规则清不清楚?');
|
||||
fireEvent.click(screen.getByRole('button', { name: '关闭智能体' }));
|
||||
fireEvent.keyDown(screen.getByRole('textbox', { name: '向智能体提问' }), { key: 'Escape' });
|
||||
expect(screen.getByRole('button', { name: '智能体', exact: true })).toHaveAttribute('aria-expanded', 'false');
|
||||
expect(screen.getByRole('button', { name: '智能体', exact: true })).toHaveFocus();
|
||||
expect(consultationCreate).not.toHaveBeenCalled();
|
||||
expect(consultationSend).not.toHaveBeenCalled();
|
||||
expect(conversationApi.submit).not.toHaveBeenCalled();
|
||||
|
||||
Reference in New Issue
Block a user