Files
2024-02-15 17:01:50 +00:00

14 lines
558 B
TypeScript

import {OrganizationFixture} from 'sentry-fixture/organization';
import {render, screen} from 'sentry-test/reactTestingLibrary';
import OrganizationBadge from 'sentry/components/idBadge/organizationBadge';
describe('OrganizationBadge', function () {
it('renders with Avatar and organization name', function () {
render(<OrganizationBadge organization={OrganizationFixture()} />);
expect(screen.getByTestId('badge-styled-avatar')).toBeInTheDocument();
expect(screen.getByTestId('badge-display-name')).toHaveTextContent('org-slug');
});
});