import {render, screen} from 'sentry-test/reactTestingLibrary'; import AlertBadge from 'sentry/components/alertBadge'; import {IncidentStatus} from 'sentry/views/alerts/types'; describe('AlertBadge', () => { it('displays status', () => { render(); expect(screen.getByText('Resolved')).toBeInTheDocument(); }); it('hides status text', () => { render(); expect(screen.queryByText('Resolved')).not.toBeInTheDocument(); }); it('can be an issue badge', () => { render(); expect(screen.getByText('Issue')).toBeInTheDocument(); }); });