index.spec.tsx 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  1. import {browserHistory} from 'react-router';
  2. import {Location} from 'history';
  3. import {initializeOrg} from 'sentry-test/initializeOrg';
  4. import {
  5. initializeData,
  6. initializeDataSettings,
  7. } from 'sentry-test/performance/initializePerformanceData';
  8. import {
  9. act,
  10. fireEvent,
  11. render,
  12. screen,
  13. userEvent,
  14. waitFor,
  15. within,
  16. } from 'sentry-test/reactTestingLibrary';
  17. import PageFiltersStore from 'sentry/stores/pageFiltersStore';
  18. import ProjectsStore from 'sentry/stores/projectsStore';
  19. import {WebVital} from 'sentry/utils/fields';
  20. import TrendsIndex from 'sentry/views/performance/trends/';
  21. import {defaultTrendsSelectionDate} from 'sentry/views/performance/trends/content';
  22. import {
  23. DEFAULT_MAX_DURATION,
  24. TRENDS_FUNCTIONS,
  25. TRENDS_PARAMETERS,
  26. } from 'sentry/views/performance/trends/utils';
  27. const trendsViewQuery = {
  28. query: `tpm():>0.01 transaction.duration:>0 transaction.duration:<${DEFAULT_MAX_DURATION}`,
  29. };
  30. jest.mock(
  31. 'sentry/utils/getDynamicComponent',
  32. () =>
  33. ({fixed}) =>
  34. fixed
  35. );
  36. jest.mock('moment', () => {
  37. const moment = jest.requireActual('moment');
  38. moment.now = jest.fn().mockReturnValue(1601251200000);
  39. return moment;
  40. });
  41. async function getTrendDropdown() {
  42. const dropdown = await screen.findByRole('button', {name: /Percentile.+/});
  43. expect(dropdown).toBeInTheDocument();
  44. return dropdown;
  45. }
  46. async function getParameterDropdown() {
  47. const dropdown = await screen.findByRole('button', {name: /Parameter.+/});
  48. expect(dropdown).toBeInTheDocument();
  49. return dropdown;
  50. }
  51. async function waitForMockCall(mock: any) {
  52. await waitFor(() => {
  53. expect(mock).toHaveBeenCalled();
  54. });
  55. }
  56. function enterSearch(el, text) {
  57. fireEvent.change(el, {target: {value: text}});
  58. fireEvent.submit(el);
  59. }
  60. // Might swap on/off the skiphover to check perf later.
  61. async function clickEl(el) {
  62. await userEvent.click(el, {skipHover: true});
  63. }
  64. function _initializeData(
  65. settings: initializeDataSettings,
  66. options?: {selectedProjectId?: string}
  67. ) {
  68. const newSettings = {...settings};
  69. newSettings.projects = settings.projects ?? [
  70. TestStubs.Project({id: '1', firstTransactionEvent: false}),
  71. TestStubs.Project({id: '2', firstTransactionEvent: true}),
  72. ];
  73. if (options?.selectedProjectId) {
  74. const selectedProject = newSettings.projects.find(
  75. p => p.id === options.selectedProjectId
  76. );
  77. if (!selectedProject) {
  78. throw new Error("Test is selecting project that isn't loaded");
  79. } else {
  80. PageFiltersStore.updateProjects(
  81. settings.selectedProject ? [Number(selectedProject)] : [],
  82. []
  83. );
  84. }
  85. newSettings.selectedProject = selectedProject.id;
  86. }
  87. newSettings.selectedProject = settings.selectedProject ?? newSettings.projects[0].id;
  88. const data = initializeData(newSettings);
  89. // Modify page filters store to stop rerendering due to the test harness.
  90. PageFiltersStore.onInitializeUrlState(
  91. {
  92. projects: [],
  93. environments: [],
  94. datetime: {start: null, end: null, period: '24h', utc: null},
  95. },
  96. new Set()
  97. );
  98. PageFiltersStore.updateDateTime(defaultTrendsSelectionDate);
  99. if (!options?.selectedProjectId) {
  100. PageFiltersStore.updateProjects(
  101. settings.selectedProject ? [Number(newSettings.projects[0].id)] : [],
  102. []
  103. );
  104. }
  105. act(() => ProjectsStore.loadInitialData(data.projects));
  106. return data;
  107. }
  108. function initializeTrendsData(
  109. projects: null | any[] = null,
  110. query = {},
  111. includeDefaultQuery = true
  112. ) {
  113. const _projects = Array.isArray(projects)
  114. ? projects
  115. : [
  116. TestStubs.Project({id: '1', firstTransactionEvent: false}),
  117. TestStubs.Project({id: '2', firstTransactionEvent: true}),
  118. ];
  119. const features = ['transaction-event', 'performance-view'];
  120. const organization = TestStubs.Organization({
  121. features,
  122. projects: _projects,
  123. });
  124. const newQuery = {...(includeDefaultQuery ? trendsViewQuery : {}), ...query};
  125. const initialData = initializeOrg({
  126. organization,
  127. router: {
  128. location: {
  129. query: newQuery,
  130. },
  131. },
  132. projects: _projects,
  133. project: projects ? projects[0] : undefined,
  134. });
  135. act(() => ProjectsStore.loadInitialData(initialData.organization.projects));
  136. return initialData;
  137. }
  138. describe('Performance > Trends', function () {
  139. let trendsStatsMock;
  140. beforeEach(function () {
  141. browserHistory.push = jest.fn();
  142. MockApiClient.addMockResponse({
  143. url: '/organizations/org-slug/projects/',
  144. body: [],
  145. });
  146. MockApiClient.addMockResponse({
  147. url: '/organizations/org-slug/tags/',
  148. body: [],
  149. });
  150. MockApiClient.addMockResponse({
  151. url: '/organizations/org-slug/users/',
  152. body: [],
  153. });
  154. MockApiClient.addMockResponse({
  155. url: '/organizations/org-slug/recent-searches/',
  156. body: [],
  157. });
  158. MockApiClient.addMockResponse({
  159. url: '/organizations/org-slug/recent-searches/',
  160. method: 'POST',
  161. body: [],
  162. });
  163. MockApiClient.addMockResponse({
  164. url: '/organizations/org-slug/sdk-updates/',
  165. body: [],
  166. });
  167. MockApiClient.addMockResponse({
  168. url: '/prompts-activity/',
  169. body: {},
  170. });
  171. MockApiClient.addMockResponse({
  172. url: '/organizations/org-slug/releases/stats/',
  173. body: [],
  174. });
  175. MockApiClient.addMockResponse({
  176. url: '/organizations/org-slug/tags/transaction.duration/values/',
  177. body: [],
  178. });
  179. trendsStatsMock = MockApiClient.addMockResponse({
  180. url: '/organizations/org-slug/events-trends-stats/',
  181. body: {
  182. stats: {
  183. 'internal,/organizations/:orgId/performance/': {
  184. data: [[123, []]],
  185. },
  186. order: 0,
  187. },
  188. events: {
  189. meta: {
  190. count_range_1: 'integer',
  191. count_range_2: 'integer',
  192. count_percentage: 'percentage',
  193. trend_percentage: 'percentage',
  194. trend_difference: 'number',
  195. aggregate_range_1: 'duration',
  196. aggregate_range_2: 'duration',
  197. transaction: 'string',
  198. },
  199. data: [
  200. {
  201. count: 8,
  202. project: 'internal',
  203. count_range_1: 2,
  204. count_range_2: 6,
  205. count_percentage: 3,
  206. trend_percentage: 1.9235225955967554,
  207. trend_difference: 797,
  208. aggregate_range_1: 863,
  209. aggregate_range_2: 1660,
  210. transaction: '/organizations/:orgId/performance/',
  211. },
  212. {
  213. count: 60,
  214. project: 'internal',
  215. count_range_1: 20,
  216. count_range_2: 40,
  217. count_percentage: 2,
  218. trend_percentage: 1.204968944099379,
  219. trend_difference: 66,
  220. aggregate_range_1: 322,
  221. aggregate_range_2: 388,
  222. transaction: '/api/0/internal/health/',
  223. },
  224. ],
  225. },
  226. },
  227. });
  228. });
  229. afterEach(function () {
  230. MockApiClient.clearMockResponses();
  231. act(() => ProjectsStore.reset());
  232. });
  233. it('renders basic UI elements', async function () {
  234. const data = _initializeData({});
  235. render(
  236. <TrendsIndex location={data.router.location} organization={data.organization} />,
  237. {
  238. context: data.routerContext,
  239. organization: data.organization,
  240. }
  241. );
  242. expect(await getTrendDropdown()).toBeInTheDocument();
  243. expect(await getParameterDropdown()).toBeInTheDocument();
  244. expect(screen.getAllByTestId('changed-transactions')).toHaveLength(2);
  245. });
  246. it('transaction list items are rendered', async function () {
  247. const data = _initializeData({});
  248. render(
  249. <TrendsIndex location={data.router.location} organization={data.organization} />,
  250. {
  251. context: data.routerContext,
  252. organization: data.organization,
  253. }
  254. );
  255. expect(await screen.findAllByTestId('trends-list-item-regression')).toHaveLength(2);
  256. expect(await screen.findAllByTestId('trends-list-item-improved')).toHaveLength(2);
  257. });
  258. it('view summary menu action links to the correct view', async function () {
  259. const projects = [TestStubs.Project({id: 1, slug: 'internal'}), TestStubs.Project()];
  260. const data = initializeTrendsData(projects, {project: ['1']});
  261. render(
  262. <TrendsIndex location={data.router.location} organization={data.organization} />,
  263. {
  264. context: data.routerContext,
  265. organization: data.organization,
  266. }
  267. );
  268. const transactions = await screen.findAllByTestId('trends-list-item-improved');
  269. expect(transactions).toHaveLength(2);
  270. const firstTransaction = transactions[0];
  271. const summaryLink = within(firstTransaction).getByTestId('item-transaction-name');
  272. expect(summaryLink.closest('a')).toHaveAttribute(
  273. 'href',
  274. '/organizations/org-slug/performance/summary/?display=trend&project=1&query=tpm%28%29%3A%3E0.01%20transaction.duration%3A%3E0%20transaction.duration%3A%3C15min&referrer=performance-transaction-summary&statsPeriod=14d&transaction=%2Forganizations%2F%3AorgId%2Fperformance%2F&trendColumn=transaction.duration&trendFunction=p50&unselectedSeries=p100%28%29'
  275. );
  276. });
  277. it('hide from list menu action modifies query', async function () {
  278. const projects = [TestStubs.Project({id: 1, slug: 'internal'}), TestStubs.Project()];
  279. const data = initializeTrendsData(projects, {project: ['1']});
  280. render(
  281. <TrendsIndex location={data.router.location} organization={data.organization} />,
  282. {
  283. context: data.routerContext,
  284. organization: data.organization,
  285. }
  286. );
  287. const transactions = await screen.findAllByTestId('trends-list-item-improved');
  288. expect(transactions).toHaveLength(2);
  289. const firstTransaction = transactions[0];
  290. const menuActions = within(firstTransaction).getAllByTestId('menu-action');
  291. expect(menuActions).toHaveLength(3);
  292. const menuAction = menuActions[2];
  293. await clickEl(menuAction);
  294. expect(browserHistory.push).toHaveBeenCalledWith({
  295. query: expect.objectContaining({
  296. project: expect.anything(),
  297. query: `tpm():>0.01 transaction.duration:>0 transaction.duration:<${DEFAULT_MAX_DURATION} !transaction:/organizations/:orgId/performance/`,
  298. }),
  299. });
  300. });
  301. it('Changing search causes cursors to be reset', async function () {
  302. const projects = [TestStubs.Project({id: 1, slug: 'internal'}), TestStubs.Project()];
  303. const data = initializeTrendsData(projects, {project: ['1']});
  304. render(
  305. <TrendsIndex location={data.router.location} organization={data.organization} />,
  306. {
  307. context: data.routerContext,
  308. organization: data.organization,
  309. }
  310. );
  311. const input = await screen.findByTestId('smart-search-input');
  312. enterSearch(input, 'transaction.duration:>9000');
  313. expect(browserHistory.push).toHaveBeenCalledWith({
  314. pathname: undefined,
  315. query: expect.objectContaining({
  316. project: ['1'],
  317. query: 'transaction.duration:>9000',
  318. improvedCursor: undefined,
  319. regressionCursor: undefined,
  320. }),
  321. });
  322. });
  323. it('exclude greater than list menu action modifies query', async function () {
  324. const projects = [TestStubs.Project({id: 1, slug: 'internal'}), TestStubs.Project()];
  325. const data = initializeTrendsData(projects, {project: ['1']});
  326. render(
  327. <TrendsIndex location={data.router.location} organization={data.organization} />,
  328. {
  329. context: data.routerContext,
  330. organization: data.organization,
  331. }
  332. );
  333. const transactions = await screen.findAllByTestId('trends-list-item-improved');
  334. expect(transactions).toHaveLength(2);
  335. const firstTransaction = transactions[0];
  336. const menuActions = within(firstTransaction).getAllByTestId('menu-action');
  337. expect(menuActions).toHaveLength(3);
  338. const menuAction = menuActions[0];
  339. await clickEl(menuAction);
  340. expect(browserHistory.push).toHaveBeenCalledWith({
  341. query: expect.objectContaining({
  342. project: expect.anything(),
  343. query: 'tpm():>0.01 transaction.duration:>0 transaction.duration:<=863',
  344. }),
  345. });
  346. });
  347. it('exclude less than list menu action modifies query', async function () {
  348. const projects = [TestStubs.Project({id: 1, slug: 'internal'}), TestStubs.Project()];
  349. const data = initializeTrendsData(projects, {project: ['1']});
  350. render(
  351. <TrendsIndex location={data.router.location} organization={data.organization} />,
  352. {
  353. context: data.routerContext,
  354. organization: data.organization,
  355. }
  356. );
  357. const transactions = await screen.findAllByTestId('trends-list-item-improved');
  358. expect(transactions).toHaveLength(2);
  359. const firstTransaction = transactions[0];
  360. const menuActions = within(firstTransaction).getAllByTestId('menu-action');
  361. expect(menuActions).toHaveLength(3);
  362. const menuAction = menuActions[1];
  363. await clickEl(menuAction);
  364. expect(browserHistory.push).toHaveBeenCalledWith({
  365. query: expect.objectContaining({
  366. project: expect.anything(),
  367. query: 'tpm():>0.01 transaction.duration:<15min transaction.duration:>=863',
  368. }),
  369. });
  370. });
  371. it('choosing a trend function changes location', async function () {
  372. const projects = [TestStubs.Project()];
  373. const data = initializeTrendsData(projects, {project: ['-1']});
  374. render(
  375. <TrendsIndex location={data.router.location} organization={data.organization} />,
  376. {
  377. context: data.routerContext,
  378. organization: data.organization,
  379. }
  380. );
  381. for (const trendFunction of TRENDS_FUNCTIONS) {
  382. // Open dropdown
  383. const dropdown = await getTrendDropdown();
  384. await clickEl(dropdown);
  385. // Select function
  386. const option = screen.getByRole('option', {name: trendFunction.label});
  387. await clickEl(option);
  388. expect(browserHistory.push).toHaveBeenCalledWith({
  389. query: expect.objectContaining({
  390. regressionCursor: undefined,
  391. improvedCursor: undefined,
  392. trendFunction: trendFunction.field,
  393. }),
  394. });
  395. }
  396. });
  397. it('sets LCP as a default trend parameter for frontend project if query does not specify trend parameter', async function () {
  398. const projects = [TestStubs.Project({id: 1, platform: 'javascript'})];
  399. const data = initializeTrendsData(projects, {project: [1]});
  400. render(
  401. <TrendsIndex location={data.router.location} organization={data.organization} />,
  402. {
  403. context: data.routerContext,
  404. organization: data.organization,
  405. }
  406. );
  407. const trendDropdownButton = await getTrendDropdown();
  408. expect(trendDropdownButton).toHaveTextContent('Percentilep50');
  409. });
  410. it('sets duration as a default trend parameter for backend project if query does not specify trend parameter', async function () {
  411. const projects = [TestStubs.Project({id: 1, platform: 'python'})];
  412. const data = initializeTrendsData(projects, {project: [1]});
  413. render(
  414. <TrendsIndex location={data.router.location} organization={data.organization} />,
  415. {
  416. context: data.routerContext,
  417. organization: data.organization,
  418. }
  419. );
  420. const parameterDropdownButton = await getParameterDropdown();
  421. expect(parameterDropdownButton).toHaveTextContent('ParameterDuration');
  422. });
  423. it('sets trend parameter from query and ignores default trend parameter', async function () {
  424. const projects = [TestStubs.Project({id: 1, platform: 'javascript'})];
  425. const data = initializeTrendsData(projects, {project: [1], trendParameter: 'FCP'});
  426. render(
  427. <TrendsIndex location={data.router.location} organization={data.organization} />,
  428. {
  429. context: data.routerContext,
  430. organization: data.organization,
  431. }
  432. );
  433. const parameterDropdownButton = await getParameterDropdown();
  434. expect(parameterDropdownButton).toHaveTextContent('ParameterFCP');
  435. });
  436. it('choosing a parameter changes location', async function () {
  437. const projects = [TestStubs.Project()];
  438. const data = initializeTrendsData(projects, {project: ['-1']});
  439. render(
  440. <TrendsIndex location={data.router.location} organization={data.organization} />,
  441. {
  442. context: data.routerContext,
  443. organization: data.organization,
  444. }
  445. );
  446. for (const parameter of TRENDS_PARAMETERS) {
  447. // Open dropdown
  448. const dropdown = await getParameterDropdown();
  449. await clickEl(dropdown);
  450. // Select parameter
  451. const option = screen.getByRole('option', {name: parameter.label});
  452. await clickEl(option);
  453. expect(browserHistory.push).toHaveBeenCalledWith({
  454. query: expect.objectContaining({
  455. trendParameter: parameter.label,
  456. }),
  457. });
  458. }
  459. });
  460. it('choosing a web vitals parameter adds it as an additional condition to the query', async function () {
  461. const projects = [TestStubs.Project()];
  462. const data = initializeTrendsData(projects, {project: ['-1']});
  463. const {rerender} = render(
  464. <TrendsIndex location={data.router.location} organization={data.organization} />,
  465. {
  466. context: data.routerContext,
  467. organization: data.organization,
  468. }
  469. );
  470. for (const parameter of TRENDS_PARAMETERS) {
  471. if (Object.values(WebVital).includes(parameter.column as WebVital)) {
  472. trendsStatsMock.mockReset();
  473. const newLocation = {
  474. query: {...trendsViewQuery, trendParameter: parameter.label},
  475. };
  476. rerender(
  477. <TrendsIndex
  478. location={newLocation as unknown as Location}
  479. organization={data.organization}
  480. />
  481. );
  482. await waitForMockCall(trendsStatsMock);
  483. expect(trendsStatsMock).toHaveBeenCalledTimes(2);
  484. // Improved transactions call
  485. expect(trendsStatsMock).toHaveBeenNthCalledWith(
  486. 1,
  487. expect.anything(),
  488. expect.objectContaining({
  489. query: expect.objectContaining({
  490. query: expect.stringContaining(`has:${parameter.column}`),
  491. }),
  492. })
  493. );
  494. // Regression transactions call
  495. expect(trendsStatsMock).toHaveBeenNthCalledWith(
  496. 2,
  497. expect.anything(),
  498. expect.objectContaining({
  499. query: expect.objectContaining({
  500. query: expect.stringContaining(`has:${parameter.column}`),
  501. }),
  502. })
  503. );
  504. }
  505. }
  506. });
  507. it('trend functions in location make api calls', async function () {
  508. const projects = [TestStubs.Project(), TestStubs.Project()];
  509. const data = initializeTrendsData(projects, {project: ['-1']});
  510. const {rerender} = render(
  511. <TrendsIndex location={data.router.location} organization={data.organization} />,
  512. {
  513. context: data.routerContext,
  514. organization: data.organization,
  515. }
  516. );
  517. for (const trendFunction of TRENDS_FUNCTIONS) {
  518. trendsStatsMock.mockReset();
  519. const newLocation = {
  520. query: {...trendsViewQuery, trendFunction: trendFunction.field},
  521. };
  522. rerender(
  523. <TrendsIndex
  524. location={newLocation as unknown as Location}
  525. organization={data.organization}
  526. />
  527. );
  528. await waitForMockCall(trendsStatsMock);
  529. expect(trendsStatsMock).toHaveBeenCalledTimes(2);
  530. const sort = 'trend_percentage()';
  531. const defaultTrendsFields = ['project'];
  532. const transactionFields = ['transaction', ...defaultTrendsFields];
  533. const projectFields = [...defaultTrendsFields];
  534. expect(transactionFields).toHaveLength(2);
  535. expect(projectFields).toHaveLength(transactionFields.length - 1);
  536. // Improved transactions call
  537. expect(trendsStatsMock).toHaveBeenNthCalledWith(
  538. 1,
  539. expect.anything(),
  540. expect.objectContaining({
  541. query: expect.objectContaining({
  542. trendFunction: `${trendFunction.field}(transaction.duration)`,
  543. sort,
  544. query: expect.stringContaining('trend_percentage():>0%'),
  545. interval: '30m',
  546. field: transactionFields,
  547. statsPeriod: '14d',
  548. }),
  549. })
  550. );
  551. // Regression transactions call
  552. expect(trendsStatsMock).toHaveBeenNthCalledWith(
  553. 2,
  554. expect.anything(),
  555. expect.objectContaining({
  556. query: expect.objectContaining({
  557. trendFunction: `${trendFunction.field}(transaction.duration)`,
  558. sort: '-' + sort,
  559. query: expect.stringContaining('trend_percentage():>0%'),
  560. interval: '30m',
  561. field: transactionFields,
  562. statsPeriod: '14d',
  563. }),
  564. })
  565. );
  566. }
  567. });
  568. it('Visiting trends with trends feature will update filters if none are set', function () {
  569. const data = initializeTrendsData(undefined, {}, false);
  570. render(
  571. <TrendsIndex location={data.router.location} organization={data.organization} />,
  572. {
  573. context: data.routerContext,
  574. organization: data.organization,
  575. }
  576. );
  577. expect(browserHistory.push).toHaveBeenNthCalledWith(
  578. 1,
  579. expect.objectContaining({
  580. query: {
  581. query: `tpm():>0.01 transaction.duration:>0 transaction.duration:<${DEFAULT_MAX_DURATION}`,
  582. },
  583. })
  584. );
  585. });
  586. it('Navigating away from trends will remove extra tags from query', async function () {
  587. const data = initializeTrendsData(
  588. undefined,
  589. {
  590. query: `device.family:Mac tpm():>0.01 transaction.duration:>0 transaction.duration:<${DEFAULT_MAX_DURATION}`,
  591. },
  592. false
  593. );
  594. render(
  595. <TrendsIndex location={data.router.location} organization={data.organization} />,
  596. {
  597. context: data.routerContext,
  598. organization: data.organization,
  599. }
  600. );
  601. (browserHistory.push as any).mockReset();
  602. const byTransactionLink = await screen.findByTestId('breadcrumb-link');
  603. expect(byTransactionLink.closest('a')).toHaveAttribute(
  604. 'href',
  605. '/organizations/org-slug/performance/?query=device.family%3AMac'
  606. );
  607. });
  608. });