groupEventDetails.spec.tsx 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  1. import type {InjectedRouter} from 'react-router';
  2. import {browserHistory} from 'react-router';
  3. import type {Location} from 'history';
  4. import {CommitFixture} from 'sentry-fixture/commit';
  5. import {CommitAuthorFixture} from 'sentry-fixture/commitAuthor';
  6. import {EventFixture} from 'sentry-fixture/event';
  7. import {GroupFixture} from 'sentry-fixture/group';
  8. import {LocationFixture} from 'sentry-fixture/locationFixture';
  9. import {OrganizationFixture} from 'sentry-fixture/organization';
  10. import {ProjectFixture} from 'sentry-fixture/project';
  11. import {RouterContextFixture} from 'sentry-fixture/routerContextFixture';
  12. import {RouterFixture} from 'sentry-fixture/routerFixture';
  13. import {SentryAppFixture} from 'sentry-fixture/sentryApp';
  14. import {SentryAppComponentFixture} from 'sentry-fixture/sentryAppComponent';
  15. import {SentryAppInstallationFixture} from 'sentry-fixture/sentryAppInstallation';
  16. import {initializeOrg} from 'sentry-test/initializeOrg';
  17. import {render, screen, waitFor, within} from 'sentry-test/reactTestingLibrary';
  18. import type {Event, Group} from 'sentry/types';
  19. import {EntryType, IssueCategory, IssueType} from 'sentry/types';
  20. import type {Organization} from 'sentry/types/organization';
  21. import type {Project} from 'sentry/types/project';
  22. import type {QuickTraceEvent} from 'sentry/utils/performance/quickTrace/types';
  23. import type {GroupEventDetailsProps} from 'sentry/views/issueDetails/groupEventDetails/groupEventDetails';
  24. import GroupEventDetails from 'sentry/views/issueDetails/groupEventDetails/groupEventDetails';
  25. import {ReprocessingStatus} from 'sentry/views/issueDetails/utils';
  26. import {RouteContext} from 'sentry/views/routeContext';
  27. const TRACE_ID = '797cda4e24844bdc90e0efe741616047';
  28. const makeDefaultMockData = (
  29. organization?: Organization,
  30. project?: Project,
  31. query?: Record<string, string | string[]>
  32. ): {
  33. event: Event;
  34. group: Group;
  35. organization: Organization;
  36. project: Project;
  37. router: InjectedRouter;
  38. } => {
  39. return {
  40. organization: organization ?? initializeOrg().organization,
  41. project: project ?? initializeOrg().project,
  42. group: GroupFixture(),
  43. router: RouterFixture({
  44. location: LocationFixture({
  45. query: query ?? {},
  46. }),
  47. }),
  48. event: EventFixture({
  49. size: 1,
  50. dateCreated: '2019-03-20T00:00:00.000Z',
  51. errors: [],
  52. entries: [],
  53. tags: [
  54. {key: 'environment', value: 'dev'},
  55. {key: 'mechanism', value: 'ANR'},
  56. ],
  57. contexts: {
  58. app: {
  59. app_start_time: '2021-08-31T15:14:21Z',
  60. device_app_hash: '0b77c3f2567d65fe816e1fa7013779fbe3b51633',
  61. build_type: 'test',
  62. app_identifier: 'io.sentry.sample.iOS-Swift',
  63. app_name: 'iOS-Swift',
  64. app_version: '7.2.3',
  65. app_build: '390',
  66. app_id: 'B2690307-FDD1-3D34-AA1E-E280A9C2406C',
  67. type: 'app',
  68. },
  69. device: {
  70. family: 'iOS',
  71. model: 'iPhone13,4',
  72. model_id: 'D54pAP',
  73. memory_size: 5987008512,
  74. free_memory: 154435584,
  75. usable_memory: 4706893824,
  76. storage_size: 127881465856,
  77. boot_time: '2021-08-29T06:05:51Z',
  78. timezone: 'CEST',
  79. type: 'device',
  80. },
  81. os: {
  82. name: 'iOS',
  83. version: '14.7.1',
  84. build: '18G82',
  85. kernel_version:
  86. 'Darwin Kernel Version 20.6.0: Mon Jun 21 21:23:35 PDT 2021; root:xnu-7195.140.42~10/RELEASE_ARM64_T8101',
  87. rooted: false,
  88. type: 'os',
  89. },
  90. trace: {
  91. trace_id: TRACE_ID,
  92. span_id: 'b0e6f15b45c36b12',
  93. op: 'ui.action.click',
  94. type: 'trace',
  95. },
  96. },
  97. }),
  98. };
  99. };
  100. function TestComponent(
  101. props: Partial<GroupEventDetailsProps> & {query?: Record<string, string | string[]>}
  102. ) {
  103. const {organization, project, group, event, router} = makeDefaultMockData(
  104. props.organization,
  105. props.project,
  106. props.query ?? {environment: ['dev']}
  107. );
  108. const mergedProps: GroupEventDetailsProps = {
  109. group,
  110. event,
  111. project,
  112. organization,
  113. params: {groupId: group.id, eventId: '1'},
  114. router,
  115. location: {} as Location<any>,
  116. route: {},
  117. eventError: props.eventError ?? false,
  118. groupReprocessingStatus:
  119. props.groupReprocessingStatus ?? ReprocessingStatus.NO_STATUS,
  120. onRetry: props?.onRetry ?? jest.fn(),
  121. loadingEvent: props.loadingEvent ?? false,
  122. routes: [],
  123. routeParams: {},
  124. ...props,
  125. };
  126. return (
  127. <RouteContext.Provider
  128. value={{
  129. router,
  130. location: router.location,
  131. params: router.params,
  132. routes: router.routes,
  133. }}
  134. >
  135. <GroupEventDetails {...mergedProps} />;
  136. </RouteContext.Provider>
  137. );
  138. }
  139. const mockedTrace = (project: Project) => {
  140. return {
  141. event_id: '8806ea4691c24fc7b1c77ecd78df574f',
  142. span_id: 'b0e6f15b45c36b12',
  143. transaction: 'MainActivity.add_attachment',
  144. 'transaction.duration': 1000,
  145. 'transaction.op': 'navigation',
  146. project_id: parseInt(project.id, 10),
  147. project_slug: project.slug,
  148. parent_span_id: null,
  149. parent_event_id: null,
  150. generation: 0,
  151. errors: [
  152. {
  153. event_id: 'c6971a73454646338bc3ec80c70f8891',
  154. issue_id: 104,
  155. span: 'b0e6f15b45c36b12',
  156. project_id: parseInt(project.id, 10),
  157. project_slug: project.slug,
  158. title: 'ApplicationNotResponding: ANR for at least 5000 ms.',
  159. level: 'error',
  160. issue: '',
  161. },
  162. ],
  163. performance_issues: [
  164. {
  165. event_id: '8806ea4691c24fc7b1c77ecd78df574f',
  166. issue_id: 110,
  167. issue_short_id: 'SENTRY-ANDROID-1R',
  168. span: ['b0e6f15b45c36b12'],
  169. suspect_spans: ['89930aab9a0314d4'],
  170. project_id: parseInt(project.id, 10),
  171. project_slug: project.slug,
  172. title: 'File IO on Main Thread',
  173. level: 'info',
  174. culprit: 'MainActivity.add_attachment',
  175. type: 1008,
  176. end: 1678290375.15056,
  177. start: 1678290374.150562,
  178. },
  179. ],
  180. timestamp: 1678290375.150561,
  181. start_timestamp: 1678290374.150561,
  182. children: [],
  183. } as QuickTraceEvent;
  184. };
  185. const mockGroupApis = (
  186. organization: Organization,
  187. project: Project,
  188. group: Group,
  189. event: Event,
  190. trace?: QuickTraceEvent
  191. ) => {
  192. MockApiClient.addMockResponse({
  193. url: `/organizations/${organization.slug}/issues/${group.id}/`,
  194. body: group,
  195. });
  196. MockApiClient.addMockResponse({
  197. url: `/projects/${organization.slug}/${project.slug}/issues/`,
  198. method: 'PUT',
  199. });
  200. MockApiClient.addMockResponse({
  201. url: `/projects/${organization.slug}/${project.slug}/events/${event.id}/committers/`,
  202. body: {committers: []},
  203. });
  204. MockApiClient.addMockResponse({
  205. url: `/projects/${organization.slug}/${project.slug}/events/${event.id}/owners/`,
  206. body: {owners: [], rules: []},
  207. });
  208. MockApiClient.addMockResponse({
  209. url: `/organizations/${organization.slug}/issues/${group.id}/tags/`,
  210. body: [],
  211. });
  212. MockApiClient.addMockResponse({
  213. url: `/organizations/${organization.slug}/events-trace/${TRACE_ID}/`,
  214. body: trace
  215. ? {transactions: [trace], orphan_errors: []}
  216. : {transactions: [], orphan_errors: []},
  217. });
  218. MockApiClient.addMockResponse({
  219. url: `/organizations/${organization.slug}/events-trace-light/${TRACE_ID}/`,
  220. body: trace
  221. ? {transactions: [trace], orphan_errors: []}
  222. : {transactions: [], orphan_errors: []},
  223. });
  224. MockApiClient.addMockResponse({
  225. url: `/organizations/${organization.slug}/issues/${group.id}/integrations/`,
  226. body: [],
  227. });
  228. MockApiClient.addMockResponse({
  229. url: `/organizations/${organization.slug}/issues/${group.id}/external-issues/`,
  230. });
  231. MockApiClient.addMockResponse({
  232. url: `/organizations/${organization.slug}/issues/${group.id}/current-release/`,
  233. body: {currentRelease: null},
  234. });
  235. MockApiClient.addMockResponse({
  236. url: `/organizations/${organization.slug}/prompts-activity/`,
  237. body: undefined,
  238. });
  239. MockApiClient.addMockResponse({
  240. url: `/organizations/${organization.slug}/has-mobile-app-events/`,
  241. body: null,
  242. });
  243. MockApiClient.addMockResponse({
  244. url: `/projects/${organization.slug}/${project.slug}/events/${event.id}/grouping-info/`,
  245. body: {},
  246. });
  247. MockApiClient.addMockResponse({
  248. url: `/projects/${organization.slug}/${project.slug}/codeowners/`,
  249. body: [],
  250. });
  251. MockApiClient.addMockResponse({
  252. url: `/organizations/${organization.slug}/code-mappings/`,
  253. method: 'GET',
  254. body: [],
  255. });
  256. MockApiClient.addMockResponse({
  257. url: `/projects/${organization.slug}/${project.slug}/events/${event.id}/actionable-items/`,
  258. body: {
  259. errors: [],
  260. },
  261. });
  262. // Sentry related mocks
  263. MockApiClient.addMockResponse({
  264. url: '/sentry-apps/',
  265. body: [],
  266. });
  267. MockApiClient.addMockResponse({
  268. url: `/organizations/${organization.slug}/sentry-apps/`,
  269. body: [],
  270. });
  271. MockApiClient.addMockResponse({
  272. url: `/organizations/${organization.slug}/sentry-app-installations/`,
  273. body: [],
  274. });
  275. MockApiClient.addMockResponse({
  276. url: `/organizations/${organization.slug}/sentry-app-components/`,
  277. body: [],
  278. match: [MockApiClient.matchQuery({projectId: project.id})],
  279. });
  280. MockApiClient.addMockResponse({
  281. url: '/projects/org-slug/project-slug/',
  282. body: project,
  283. });
  284. MockApiClient.addMockResponse({
  285. url: '/organizations/org-slug/users/',
  286. body: [],
  287. });
  288. MockApiClient.addMockResponse({
  289. url: '/organizations/org-slug/projects/',
  290. body: [project],
  291. });
  292. MockApiClient.addMockResponse({
  293. url: `/customers/org-slug/policies/`,
  294. body: {},
  295. });
  296. MockApiClient.addMockResponse({
  297. url: `/organizations/${organization.slug}/issues/${group.id}/first-last-release/`,
  298. method: 'GET',
  299. });
  300. MockApiClient.addMockResponse({
  301. url: `/organizations/${organization.slug}/events/`,
  302. body: {
  303. data: [],
  304. meta: {fields: {}, units: {}},
  305. },
  306. });
  307. };
  308. describe('groupEventDetails', () => {
  309. beforeEach(() => {
  310. MockApiClient.clearMockResponses();
  311. });
  312. afterEach(function () {
  313. MockApiClient.clearMockResponses();
  314. (browserHistory.replace as jest.Mock).mockClear();
  315. });
  316. it('redirects on switching to an invalid environment selection for event', async function () {
  317. const props = makeDefaultMockData();
  318. mockGroupApis(props.organization, props.project, props.group, props.event);
  319. const {rerender} = render(<TestComponent {...props} />, {
  320. organization: props.organization,
  321. });
  322. expect(browserHistory.replace).not.toHaveBeenCalled();
  323. rerender(<TestComponent query={{environment: ['prod']}} />);
  324. await waitFor(() => expect(browserHistory.replace).toHaveBeenCalled());
  325. });
  326. it('does not redirect when switching to a valid environment selection for event', async function () {
  327. const props = makeDefaultMockData();
  328. mockGroupApis(props.organization, props.project, props.group, props.event);
  329. const {rerender} = render(<TestComponent {...props} />, {
  330. organization: props.organization,
  331. });
  332. expect(browserHistory.replace).not.toHaveBeenCalled();
  333. rerender(<TestComponent query={{environment: []}} />);
  334. expect(await screen.findByTestId('group-event-details')).toBeInTheDocument();
  335. expect(browserHistory.replace).not.toHaveBeenCalled();
  336. });
  337. it('displays error on event error', async function () {
  338. const props = makeDefaultMockData();
  339. mockGroupApis(
  340. props.organization,
  341. props.project,
  342. props.group,
  343. EventFixture({
  344. size: 1,
  345. dateCreated: '2019-03-20T00:00:00.000Z',
  346. errors: [],
  347. entries: [],
  348. tags: [{key: 'environment', value: 'dev'}],
  349. previousEventID: 'prev-event-id',
  350. nextEventID: 'next-event-id',
  351. })
  352. );
  353. render(<TestComponent event={undefined} eventError />, {
  354. organization: props.organization,
  355. });
  356. expect(
  357. await screen.findByText(/events for this issue could not be found/)
  358. ).toBeInTheDocument();
  359. });
  360. it('renders the Span Evidence and Resources section for Performance Issues', async function () {
  361. const props = makeDefaultMockData();
  362. const group: Group = GroupFixture({
  363. issueCategory: IssueCategory.PERFORMANCE,
  364. issueType: IssueType.PERFORMANCE_N_PLUS_ONE_DB_QUERIES,
  365. });
  366. const transaction = EventFixture({
  367. entries: [{type: EntryType.SPANS, data: []}],
  368. });
  369. mockGroupApis(
  370. props.organization,
  371. props.project,
  372. props.group,
  373. EventFixture({
  374. size: 1,
  375. dateCreated: '2019-03-20T00:00:00.000Z',
  376. errors: [],
  377. entries: [],
  378. tags: [{key: 'environment', value: 'dev'}],
  379. previousEventID: 'prev-event-id',
  380. nextEventID: 'next-event-id',
  381. })
  382. );
  383. const routerContext = RouterContextFixture();
  384. render(<TestComponent group={group} event={transaction} />, {
  385. organization: props.organization,
  386. context: routerContext,
  387. });
  388. expect(
  389. await screen.findByRole('heading', {
  390. name: /span evidence/i,
  391. })
  392. ).toBeInTheDocument();
  393. expect(
  394. screen.getByRole('heading', {
  395. name: /resources/i,
  396. })
  397. ).toBeInTheDocument();
  398. });
  399. it('renders the Function Evidence and Resources section for Profile Issues', async function () {
  400. const props = makeDefaultMockData();
  401. const group: Group = GroupFixture({
  402. issueCategory: IssueCategory.PERFORMANCE,
  403. issueType: IssueType.PROFILE_FILE_IO_MAIN_THREAD,
  404. });
  405. const transaction = EventFixture({
  406. entries: [],
  407. occurrence: {
  408. evidenceDisplay: [],
  409. evidenceData: {
  410. templateName: 'profile',
  411. },
  412. type: 2001,
  413. },
  414. });
  415. mockGroupApis(
  416. props.organization,
  417. props.project,
  418. props.group,
  419. EventFixture({
  420. size: 1,
  421. dateCreated: '2019-03-20T00:00:00.000Z',
  422. errors: [],
  423. entries: [],
  424. tags: [{key: 'environment', value: 'dev'}],
  425. previousEventID: 'prev-event-id',
  426. nextEventID: 'next-event-id',
  427. })
  428. );
  429. const routerContext = RouterContextFixture();
  430. render(<TestComponent group={group} event={transaction} />, {
  431. organization: props.organization,
  432. context: routerContext,
  433. });
  434. expect(
  435. await screen.findByRole('heading', {
  436. name: /function evidence/i,
  437. })
  438. ).toBeInTheDocument();
  439. expect(
  440. screen.getByRole('heading', {
  441. name: /resources/i,
  442. })
  443. ).toBeInTheDocument();
  444. });
  445. describe('changes to event tags ui', () => {
  446. async function assertNewTagsView() {
  447. expect(await screen.findByText('Event ID:')).toBeInTheDocument();
  448. const contextSummary = screen.getByTestId('highlighted-event-data');
  449. const contextSummaryContainer = within(contextSummary);
  450. // 3 contexts in makeDefaultMockData.event.contexts, trace is ignored
  451. expect(contextSummaryContainer.queryAllByTestId('context-item')).toHaveLength(3);
  452. expect(screen.getByTestId('event-tags')).toBeInTheDocument();
  453. }
  454. it('works with the feature flag', async function () {
  455. const props = makeDefaultMockData();
  456. mockGroupApis(props.organization, props.project, props.group, props.event);
  457. const organization = OrganizationFixture({
  458. features: ['event-tags-tree-ui'],
  459. });
  460. render(<TestComponent group={props.group} event={props.event} />, {
  461. organization,
  462. });
  463. await assertNewTagsView();
  464. });
  465. it('works with the query param', async function () {
  466. const props = makeDefaultMockData();
  467. mockGroupApis(props.organization, props.project, props.group, props.event);
  468. const {organization} = initializeOrg();
  469. render(
  470. <TestComponent group={props.group} event={props.event} query={{tagsTree: '1'}} />,
  471. {organization}
  472. );
  473. await assertNewTagsView();
  474. });
  475. });
  476. });
  477. describe('EventCause', () => {
  478. beforeEach(() => {
  479. MockApiClient.clearMockResponses();
  480. });
  481. afterEach(function () {
  482. MockApiClient.clearMockResponses();
  483. (browserHistory.replace as jest.Mock).mockClear();
  484. });
  485. it('renders suspect commit', async function () {
  486. const props = makeDefaultMockData(
  487. undefined,
  488. ProjectFixture({firstEvent: EventFixture().dateCreated})
  489. );
  490. mockGroupApis(
  491. props.organization,
  492. props.project,
  493. props.group,
  494. EventFixture({
  495. size: 1,
  496. dateCreated: '2019-03-20T00:00:00.000Z',
  497. errors: [],
  498. entries: [],
  499. tags: [{key: 'environment', value: 'dev'}],
  500. previousEventID: 'prev-event-id',
  501. nextEventID: 'next-event-id',
  502. })
  503. );
  504. MockApiClient.addMockResponse({
  505. url: `/projects/${props.organization.slug}/${props.project.slug}/events/${props.event.id}/committers/`,
  506. body: {
  507. committers: [
  508. {
  509. commits: [CommitFixture({author: CommitAuthorFixture()})],
  510. author: CommitAuthorFixture(),
  511. },
  512. ],
  513. },
  514. });
  515. render(<TestComponent project={props.project} />, {organization: props.organization});
  516. expect(await screen.findByTestId(/suspect-commit/)).toBeInTheDocument();
  517. });
  518. });
  519. describe('Platform Integrations', () => {
  520. let componentsRequest;
  521. beforeEach(() => {
  522. MockApiClient.clearMockResponses();
  523. });
  524. it('loads Integration UI components', async () => {
  525. const props = makeDefaultMockData();
  526. const unpublishedIntegration = SentryAppFixture({status: 'unpublished'});
  527. const internalIntegration = SentryAppFixture({status: 'internal'});
  528. const unpublishedInstall = SentryAppInstallationFixture({
  529. app: {
  530. slug: unpublishedIntegration.slug,
  531. uuid: unpublishedIntegration.uuid,
  532. },
  533. });
  534. const internalInstall = SentryAppInstallationFixture({
  535. app: {
  536. slug: internalIntegration.slug,
  537. uuid: internalIntegration.uuid,
  538. },
  539. });
  540. mockGroupApis(
  541. props.organization,
  542. props.project,
  543. props.group,
  544. EventFixture({
  545. size: 1,
  546. dateCreated: '2019-03-20T00:00:00.000Z',
  547. errors: [],
  548. entries: [],
  549. tags: [{key: 'environment', value: 'dev'}],
  550. previousEventID: 'prev-event-id',
  551. nextEventID: 'next-event-id',
  552. })
  553. );
  554. const component = SentryAppComponentFixture({
  555. sentryApp: {
  556. uuid: unpublishedIntegration.uuid,
  557. slug: unpublishedIntegration.slug,
  558. name: unpublishedIntegration.name,
  559. },
  560. });
  561. MockApiClient.addMockResponse({
  562. url: `/organizations/${props.organization.slug}/sentry-app-installations/`,
  563. body: [unpublishedInstall, internalInstall],
  564. });
  565. componentsRequest = MockApiClient.addMockResponse({
  566. url: `/organizations/${props.organization.slug}/sentry-app-components/`,
  567. body: [component],
  568. match: [MockApiClient.matchQuery({projectId: props.project.id})],
  569. });
  570. render(<TestComponent />, {organization: props.organization});
  571. expect(await screen.findByText('Sample App Issue')).toBeInTheDocument();
  572. expect(componentsRequest).toHaveBeenCalled();
  573. });
  574. describe('ANR Root Cause', () => {
  575. beforeEach(() => {
  576. MockApiClient.clearMockResponses();
  577. });
  578. it('shows anr root cause', async () => {
  579. const {organization} = initializeOrg();
  580. const props = makeDefaultMockData({
  581. ...organization,
  582. features: ['anr-improvements'],
  583. });
  584. mockGroupApis(
  585. props.organization,
  586. props.project,
  587. props.group,
  588. props.event,
  589. mockedTrace(props.project)
  590. );
  591. const routerContext = RouterContextFixture();
  592. render(<TestComponent group={props.group} event={props.event} />, {
  593. organization: props.organization,
  594. context: routerContext,
  595. });
  596. expect(
  597. await screen.findByRole('heading', {
  598. name: /suspect root cause/i,
  599. })
  600. ).toBeInTheDocument();
  601. expect(screen.getByText('File IO on Main Thread')).toBeInTheDocument();
  602. });
  603. it('does not render root issues section if related perf issues do not exist', async () => {
  604. const {organization} = initializeOrg();
  605. const props = makeDefaultMockData({
  606. ...organization,
  607. features: ['anr-improvements'],
  608. });
  609. const trace = mockedTrace(props.project);
  610. mockGroupApis(props.organization, props.project, props.group, props.event, {
  611. ...trace,
  612. performance_issues: [],
  613. });
  614. const routerContext = RouterContextFixture();
  615. render(<TestComponent group={props.group} event={props.event} />, {
  616. organization: props.organization,
  617. context: routerContext,
  618. });
  619. // mechanism: ANR
  620. expect(await screen.findByText('ANR')).toBeInTheDocument();
  621. expect(
  622. screen.queryByRole('heading', {
  623. name: /suspect root issues/i,
  624. })
  625. ).not.toBeInTheDocument();
  626. expect(screen.queryByText('File IO on Main Thread')).not.toBeInTheDocument();
  627. });
  628. });
  629. });