organizationBadge.spec.tsx 495 B

1234567891011
  1. import {render, screen} from 'sentry-test/reactTestingLibrary';
  2. import OrganizationBadge from 'sentry/components/idBadge/organizationBadge';
  3. describe('OrganizationBadge', function () {
  4. it('renders with Avatar and organization name', function () {
  5. render(<OrganizationBadge organization={TestStubs.Organization()} />);
  6. expect(screen.getByTestId('badge-styled-avatar')).toBeInTheDocument();
  7. expect(screen.getByTestId('badge-display-name')).toHaveTextContent('org-slug');
  8. });
  9. });