groupEventDetails.spec.tsx 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696
  1. import type {InjectedRouter} from 'react-router';
  2. import type {Location} from 'history';
  3. import {CommitFixture} from 'sentry-fixture/commit';
  4. import {CommitAuthorFixture} from 'sentry-fixture/commitAuthor';
  5. import {EventFixture} from 'sentry-fixture/event';
  6. import {GroupFixture} from 'sentry-fixture/group';
  7. import {LocationFixture} from 'sentry-fixture/locationFixture';
  8. import {ProjectFixture} from 'sentry-fixture/project';
  9. import {RouterFixture} from 'sentry-fixture/routerFixture';
  10. import {SentryAppFixture} from 'sentry-fixture/sentryApp';
  11. import {SentryAppComponentFixture} from 'sentry-fixture/sentryAppComponent';
  12. import {SentryAppInstallationFixture} from 'sentry-fixture/sentryAppInstallation';
  13. import {initializeOrg} from 'sentry-test/initializeOrg';
  14. import {render, screen, waitFor, within} from 'sentry-test/reactTestingLibrary';
  15. import type {Event} from 'sentry/types/event';
  16. import {EntryType} from 'sentry/types/event';
  17. import type {Group} from 'sentry/types/group';
  18. import {IssueCategory, IssueType} from 'sentry/types/group';
  19. import type {Organization} from 'sentry/types/organization';
  20. import type {Project} from 'sentry/types/project';
  21. import {browserHistory} from 'sentry/utils/browserHistory';
  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. message: 'ANR for at least 5000 ms.',
  160. level: 'error',
  161. issue: '',
  162. },
  163. ],
  164. performance_issues: [
  165. {
  166. event_id: '8806ea4691c24fc7b1c77ecd78df574f',
  167. issue_id: 110,
  168. issue_short_id: 'SENTRY-ANDROID-1R',
  169. span: ['b0e6f15b45c36b12'],
  170. suspect_spans: ['89930aab9a0314d4'],
  171. project_id: parseInt(project.id, 10),
  172. project_slug: project.slug,
  173. title: 'File IO on Main Thread',
  174. message: 'File IO on Main Thread',
  175. level: 'info',
  176. culprit: 'MainActivity.add_attachment',
  177. type: 1008,
  178. end: 1678290375.15056,
  179. start: 1678290374.150562,
  180. },
  181. ],
  182. timestamp: 1678290375.150561,
  183. start_timestamp: 1678290374.150561,
  184. children: [],
  185. } as QuickTraceEvent;
  186. };
  187. const mockGroupApis = (
  188. organization: Organization,
  189. project: Project,
  190. group: Group,
  191. event: Event,
  192. replayId?: string,
  193. trace?: QuickTraceEvent
  194. ) => {
  195. MockApiClient.addMockResponse({
  196. url: `/organizations/${organization.slug}/issues/${group.id}/`,
  197. body: group,
  198. });
  199. MockApiClient.addMockResponse({
  200. url: `/organizations/${organization.slug}/replays/${replayId}/`,
  201. body: {},
  202. });
  203. MockApiClient.addMockResponse({
  204. url: `/projects/${organization.slug}/${project.slug}/issues/`,
  205. method: 'PUT',
  206. });
  207. MockApiClient.addMockResponse({
  208. url: `/projects/${organization.slug}/${project.slug}/events/${event.id}/committers/`,
  209. body: {committers: []},
  210. });
  211. MockApiClient.addMockResponse({
  212. url: `/projects/${organization.slug}/${project.slug}/events/${event.id}/owners/`,
  213. body: {owners: [], rules: []},
  214. });
  215. MockApiClient.addMockResponse({
  216. url: `/organizations/${organization.slug}/issues/${group.id}/tags/`,
  217. body: [],
  218. });
  219. MockApiClient.addMockResponse({
  220. url: `/organizations/${organization.slug}/events-trace/${TRACE_ID}/`,
  221. body: trace
  222. ? {transactions: [trace], orphan_errors: []}
  223. : {transactions: [], orphan_errors: []},
  224. });
  225. MockApiClient.addMockResponse({
  226. url: `/organizations/${organization.slug}/events-trace-light/${TRACE_ID}/`,
  227. body: trace
  228. ? {transactions: [trace], orphan_errors: []}
  229. : {transactions: [], orphan_errors: []},
  230. });
  231. MockApiClient.addMockResponse({
  232. url: `/organizations/${organization.slug}/issues/${group.id}/integrations/`,
  233. body: [],
  234. });
  235. MockApiClient.addMockResponse({
  236. url: `/organizations/${organization.slug}/issues/${group.id}/external-issues/`,
  237. body: [],
  238. });
  239. MockApiClient.addMockResponse({
  240. url: `/organizations/${organization.slug}/issues/${group.id}/current-release/`,
  241. body: {currentRelease: null},
  242. });
  243. MockApiClient.addMockResponse({
  244. url: `/organizations/${organization.slug}/prompts-activity/`,
  245. body: {data: {}, features: {['issue_feedback_hidden']: {}}},
  246. });
  247. MockApiClient.addMockResponse({
  248. url: `/organizations/${organization.slug}/prompts-activity/`,
  249. method: 'PUT',
  250. });
  251. MockApiClient.addMockResponse({
  252. url: `/organizations/${organization.slug}/has-mobile-app-events/`,
  253. body: null,
  254. });
  255. MockApiClient.addMockResponse({
  256. url: `/projects/${organization.slug}/${project.slug}/events/${event.id}/grouping-info/`,
  257. body: {},
  258. });
  259. MockApiClient.addMockResponse({
  260. url: `/projects/${organization.slug}/${project.slug}/codeowners/`,
  261. body: [],
  262. });
  263. MockApiClient.addMockResponse({
  264. url: `/organizations/${organization.slug}/code-mappings/`,
  265. method: 'GET',
  266. body: [],
  267. });
  268. MockApiClient.addMockResponse({
  269. url: `/projects/${organization.slug}/${project.slug}/events/${event.id}/actionable-items/`,
  270. body: {
  271. errors: [],
  272. },
  273. });
  274. // Sentry related mocks
  275. MockApiClient.addMockResponse({
  276. url: '/sentry-apps/',
  277. body: [],
  278. });
  279. MockApiClient.addMockResponse({
  280. url: `/organizations/${organization.slug}/sentry-apps/`,
  281. body: [],
  282. });
  283. MockApiClient.addMockResponse({
  284. url: `/organizations/${organization.slug}/sentry-app-installations/`,
  285. body: [],
  286. });
  287. MockApiClient.addMockResponse({
  288. url: `/organizations/${organization.slug}/sentry-app-components/`,
  289. body: [],
  290. match: [MockApiClient.matchQuery({projectId: project.id})],
  291. });
  292. MockApiClient.addMockResponse({
  293. url: '/projects/org-slug/project-slug/',
  294. body: project,
  295. });
  296. MockApiClient.addMockResponse({
  297. url: '/organizations/org-slug/users/',
  298. body: [],
  299. });
  300. MockApiClient.addMockResponse({
  301. url: '/organizations/org-slug/projects/',
  302. body: [project],
  303. });
  304. MockApiClient.addMockResponse({
  305. url: `/customers/org-slug/policies/`,
  306. body: {},
  307. });
  308. MockApiClient.addMockResponse({
  309. url: `/organizations/${organization.slug}/issues/${group.id}/first-last-release/`,
  310. method: 'GET',
  311. });
  312. MockApiClient.addMockResponse({
  313. url: `/organizations/${organization.slug}/events/`,
  314. body: {
  315. data: [],
  316. meta: {fields: {}, units: {}},
  317. },
  318. });
  319. MockApiClient.addMockResponse({
  320. url: `/projects/${organization.slug}/${project.slug}/`,
  321. body: project,
  322. });
  323. };
  324. describe('groupEventDetails', () => {
  325. beforeEach(() => {
  326. MockApiClient.clearMockResponses();
  327. });
  328. afterEach(function () {
  329. MockApiClient.clearMockResponses();
  330. jest.mocked(browserHistory.replace).mockClear();
  331. });
  332. it('redirects on switching to an invalid environment selection for event', async function () {
  333. const props = makeDefaultMockData();
  334. mockGroupApis(props.organization, props.project, props.group, props.event);
  335. const {rerender} = render(<TestComponent {...props} />);
  336. expect(browserHistory.replace).not.toHaveBeenCalled();
  337. rerender(<TestComponent query={{environment: ['prod']}} />);
  338. await waitFor(() => expect(browserHistory.replace).toHaveBeenCalled());
  339. });
  340. it('does not redirect when switching to a valid environment selection for event', async function () {
  341. const props = makeDefaultMockData();
  342. mockGroupApis(props.organization, props.project, props.group, props.event);
  343. const {rerender} = render(<TestComponent {...props} />);
  344. expect(browserHistory.replace).not.toHaveBeenCalled();
  345. rerender(<TestComponent query={{environment: []}} />);
  346. expect(await screen.findByTestId('group-event-details')).toBeInTheDocument();
  347. expect(browserHistory.replace).not.toHaveBeenCalled();
  348. });
  349. it('displays error on event error', async function () {
  350. const props = makeDefaultMockData();
  351. mockGroupApis(
  352. props.organization,
  353. props.project,
  354. props.group,
  355. EventFixture({
  356. size: 1,
  357. dateCreated: '2019-03-20T00:00:00.000Z',
  358. errors: [],
  359. entries: [],
  360. tags: [{key: 'environment', value: 'dev'}],
  361. previousEventID: 'prev-event-id',
  362. nextEventID: 'next-event-id',
  363. })
  364. );
  365. render(<TestComponent event={undefined} eventError />);
  366. expect(
  367. await screen.findByText(/events for this issue could not be found/)
  368. ).toBeInTheDocument();
  369. });
  370. it('renders the Span Evidence and Resources section for Performance Issues', async function () {
  371. const props = makeDefaultMockData();
  372. const group: Group = GroupFixture({
  373. issueCategory: IssueCategory.PERFORMANCE,
  374. issueType: IssueType.PERFORMANCE_N_PLUS_ONE_DB_QUERIES,
  375. });
  376. const transaction = EventFixture({
  377. entries: [{type: EntryType.SPANS, data: []}],
  378. });
  379. mockGroupApis(
  380. props.organization,
  381. props.project,
  382. props.group,
  383. EventFixture({
  384. size: 1,
  385. dateCreated: '2019-03-20T00:00:00.000Z',
  386. errors: [],
  387. entries: [],
  388. tags: [{key: 'environment', value: 'dev'}],
  389. previousEventID: 'prev-event-id',
  390. nextEventID: 'next-event-id',
  391. })
  392. );
  393. render(<TestComponent group={group} event={transaction} />, {
  394. organization: props.organization,
  395. });
  396. expect(
  397. await screen.findByRole('heading', {
  398. name: /span evidence/i,
  399. })
  400. ).toBeInTheDocument();
  401. expect(
  402. screen.getByRole('heading', {
  403. name: /resources/i,
  404. })
  405. ).toBeInTheDocument();
  406. });
  407. it('renders the Function Evidence and Resources section for Profile Issues', async function () {
  408. const props = makeDefaultMockData();
  409. const group: Group = GroupFixture({
  410. issueCategory: IssueCategory.PERFORMANCE,
  411. issueType: IssueType.PROFILE_FILE_IO_MAIN_THREAD,
  412. });
  413. const transaction = EventFixture({
  414. entries: [],
  415. occurrence: {
  416. evidenceDisplay: [],
  417. evidenceData: {
  418. templateName: 'profile',
  419. },
  420. type: 2001,
  421. },
  422. });
  423. mockGroupApis(
  424. props.organization,
  425. props.project,
  426. props.group,
  427. EventFixture({
  428. size: 1,
  429. dateCreated: '2019-03-20T00:00:00.000Z',
  430. errors: [],
  431. entries: [],
  432. tags: [{key: 'environment', value: 'dev'}],
  433. previousEventID: 'prev-event-id',
  434. nextEventID: 'next-event-id',
  435. })
  436. );
  437. render(<TestComponent group={group} event={transaction} />, {});
  438. expect(
  439. await screen.findByRole('heading', {
  440. name: /function evidence/i,
  441. })
  442. ).toBeInTheDocument();
  443. expect(
  444. screen.getByRole('heading', {
  445. name: /resources/i,
  446. })
  447. ).toBeInTheDocument();
  448. });
  449. it('renders event tags ui', async () => {
  450. const props = makeDefaultMockData();
  451. mockGroupApis(props.organization, props.project, props.group, props.event);
  452. render(<TestComponent group={props.group} event={props.event} />, {});
  453. expect(await screen.findByText('Event ID:')).toBeInTheDocument();
  454. expect(screen.queryByTestId('context-summary')).not.toBeInTheDocument();
  455. expect(screen.getByTestId('event-tags')).toBeInTheDocument();
  456. const highlights = screen.getByTestId('event-highlights');
  457. expect(
  458. within(highlights).getByRole('button', {name: 'View All'})
  459. ).toBeInTheDocument();
  460. expect(within(highlights).getByRole('button', {name: 'Edit'})).toBeInTheDocument();
  461. // No highlights setup
  462. expect(
  463. within(highlights).getByRole('button', {name: 'Add Highlights'})
  464. ).toBeInTheDocument();
  465. expect(screen.getByText("There's nothing here...")).toBeInTheDocument();
  466. });
  467. });
  468. describe('EventCause', () => {
  469. beforeEach(() => {
  470. MockApiClient.clearMockResponses();
  471. });
  472. afterEach(function () {
  473. MockApiClient.clearMockResponses();
  474. jest.mocked(browserHistory.replace).mockClear();
  475. });
  476. it('renders suspect commit', async function () {
  477. const props = makeDefaultMockData(
  478. undefined,
  479. ProjectFixture({firstEvent: EventFixture().dateCreated})
  480. );
  481. mockGroupApis(
  482. props.organization,
  483. props.project,
  484. props.group,
  485. EventFixture({
  486. size: 1,
  487. dateCreated: '2019-03-20T00:00:00.000Z',
  488. errors: [],
  489. entries: [],
  490. tags: [{key: 'environment', value: 'dev'}],
  491. previousEventID: 'prev-event-id',
  492. nextEventID: 'next-event-id',
  493. })
  494. );
  495. MockApiClient.addMockResponse({
  496. url: `/projects/${props.organization.slug}/${props.project.slug}/events/${props.event.id}/committers/`,
  497. body: {
  498. committers: [
  499. {
  500. commits: [CommitFixture({author: CommitAuthorFixture()})],
  501. author: CommitAuthorFixture(),
  502. },
  503. ],
  504. },
  505. });
  506. render(<TestComponent project={props.project} />);
  507. expect(await screen.findByTestId(/suspect-commit/)).toBeInTheDocument();
  508. });
  509. });
  510. describe('Platform Integrations', () => {
  511. let componentsRequest;
  512. beforeEach(() => {
  513. MockApiClient.clearMockResponses();
  514. });
  515. it('loads Integration UI components', async () => {
  516. const props = makeDefaultMockData();
  517. const unpublishedIntegration = SentryAppFixture({status: 'unpublished'});
  518. const internalIntegration = SentryAppFixture({status: 'internal'});
  519. const unpublishedInstall = SentryAppInstallationFixture({
  520. app: {
  521. slug: unpublishedIntegration.slug,
  522. uuid: unpublishedIntegration.uuid,
  523. },
  524. });
  525. const internalInstall = SentryAppInstallationFixture({
  526. app: {
  527. slug: internalIntegration.slug,
  528. uuid: internalIntegration.uuid,
  529. },
  530. });
  531. mockGroupApis(
  532. props.organization,
  533. props.project,
  534. props.group,
  535. EventFixture({
  536. size: 1,
  537. dateCreated: '2019-03-20T00:00:00.000Z',
  538. errors: [],
  539. entries: [],
  540. tags: [{key: 'environment', value: 'dev'}],
  541. previousEventID: 'prev-event-id',
  542. nextEventID: 'next-event-id',
  543. })
  544. );
  545. const component = SentryAppComponentFixture({
  546. sentryApp: {
  547. uuid: unpublishedIntegration.uuid,
  548. slug: unpublishedIntegration.slug,
  549. name: unpublishedIntegration.name,
  550. },
  551. });
  552. MockApiClient.addMockResponse({
  553. url: `/organizations/${props.organization.slug}/sentry-app-installations/`,
  554. body: [unpublishedInstall, internalInstall],
  555. });
  556. componentsRequest = MockApiClient.addMockResponse({
  557. url: `/organizations/${props.organization.slug}/sentry-app-components/`,
  558. body: [component],
  559. match: [MockApiClient.matchQuery({projectId: props.project.id})],
  560. });
  561. render(<TestComponent />);
  562. expect(await screen.findByText('Sample App Issue')).toBeInTheDocument();
  563. expect(componentsRequest).toHaveBeenCalled();
  564. });
  565. describe('ANR Root Cause', () => {
  566. beforeEach(() => {
  567. MockApiClient.clearMockResponses();
  568. });
  569. it('shows anr root cause', async () => {
  570. const props = makeDefaultMockData();
  571. mockGroupApis(
  572. props.organization,
  573. props.project,
  574. props.group,
  575. props.event,
  576. undefined,
  577. mockedTrace(props.project)
  578. );
  579. render(<TestComponent group={props.group} event={props.event} />, {
  580. organization: props.organization,
  581. });
  582. expect(
  583. await screen.findByRole('heading', {
  584. name: /suspect root cause/i,
  585. })
  586. ).toBeInTheDocument();
  587. expect(screen.getByText('File IO on Main Thread')).toBeInTheDocument();
  588. });
  589. it('does not render root issues section if related perf issues do not exist', async () => {
  590. const props = makeDefaultMockData();
  591. const trace = mockedTrace(props.project);
  592. mockGroupApis(
  593. props.organization,
  594. props.project,
  595. props.group,
  596. props.event,
  597. undefined,
  598. {
  599. ...trace,
  600. performance_issues: [],
  601. }
  602. );
  603. render(<TestComponent group={props.group} event={props.event} />, {
  604. organization: props.organization,
  605. });
  606. // mechanism: ANR
  607. expect(await screen.findByText('ANR')).toBeInTheDocument();
  608. expect(
  609. screen.queryByRole('heading', {
  610. name: /suspect root issues/i,
  611. })
  612. ).not.toBeInTheDocument();
  613. expect(screen.queryByText('File IO on Main Thread')).not.toBeInTheDocument();
  614. });
  615. });
  616. });