mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
refactor(web): replace emoji-mart with self-hosted Frimousse picker (#42469)
This commit is contained in:
1 parent
6d88df5d7c
commit
228541c15d
39 files changed
+2376
-472
No files matched your search
@@ -127,15 +127,15 @@ describe('AgentDetailSection', () => {
|
||||
})
|
||||
|
||||
it('renders the current agent avatar, name, and role', () => {
|
||||
const { container } = renderAgentDetailSection()
|
||||
renderAgentDetailSection()
|
||||
const agentName = screen.getByText('Research Agent')
|
||||
const agentAvatar = container.querySelector('em-emoji')?.parentElement
|
||||
const agentAvatar = screen.getByText('🧪')
|
||||
|
||||
expect(agentName).toBeInTheDocument()
|
||||
expect(screen.getByText('Research Assistant')).toBeInTheDocument()
|
||||
expect(screen.queryByText('agent')).not.toBeInTheDocument()
|
||||
expect(screen.queryByText('agentV2.agentDetail.title')).not.toBeInTheDocument()
|
||||
expect(container.querySelector('em-emoji')).toHaveAttribute('id', '🧪')
|
||||
expect(agentAvatar).toHaveTextContent('🧪')
|
||||
expect(agentAvatar).toHaveClass('h-10', 'w-10', 'rounded-full')
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user