import {render, screen, userEvent} from 'sentry-test/reactTestingLibrary'; import {ErrorItem} from 'sentry/components/events/errorItem'; describe('Issue error item', function () { it('expand subitems', function () { render( ); expect(screen.getByText('A proguard mapping file was missing.')).toBeInTheDocument(); expect(screen.queryByText('Mapping Uuid')).not.toBeInTheDocument(); userEvent.click(screen.getByLabelText('Expand')); expect(screen.getByText('Mapping Uuid')).toBeInTheDocument(); }); });