Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

513 B
Raw Blame
import { render, screen } from '@testing-library/react'
import RoleBadges from '../role-badges'

describe('RoleBadges', () => {
  it('shows the visible roles and summarizes overflow', () => {
    render(<RoleBadges roleNames={['Owner', 'Admin', 'Editor']} max={2} />)

    expect(screen.getByText('Owner')).toBeInTheDocument()
    expect(screen.getByText('Admin')).toBeInTheDocument()
    expect(screen.getByText('+1')).toBeInTheDocument()
    expect(screen.queryByText('Editor')).not.toBeInTheDocument()
  })
})