import {initializeOrg} from 'sentry-test/initializeOrg'; import {render} from 'sentry-test/reactTestingLibrary'; import EventOrGroupExtraDetails from 'sentry/components/eventOrGroupExtraDetails'; describe('EventOrGroupExtraDetails', function () { const {routerContext} = initializeOrg(); it('renders last and first seen', function () { const {container} = render( , {context: routerContext} ); expect(container).toSnapshot(); }); it('renders only first seen', function () { const {container} = render( , {context: routerContext} ); expect(container).toSnapshot(); }); it('renders only last seen', function () { const {container} = render( , {context: routerContext} ); expect(container).toSnapshot(); }); it('renders all details', function () { const {container} = render( , {context: routerContext} ); expect(container).toSnapshot(); }); it('renders assignee and status', function () { const {container} = render( , {context: routerContext} ); expect(container).toSnapshot(); }); it('details when mentioned', function () { const {container} = render( , {context: routerContext} ); expect(container).toSnapshot(); }); });