organizationBadge.spec.tsx 553 B

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