You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WorstProjects-test.tsx.snap 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`renders 1`] = `
  3. <div
  4. className="panel panel-white portfolio-sub-components"
  5. id="portfolio-sub-components"
  6. >
  7. <table
  8. className="data zebra"
  9. >
  10. <thead>
  11. <tr>
  12. <th>
  13.  
  14. </th>
  15. <th
  16. className="text-center portfolio-sub-components-cell"
  17. >
  18. metric_domain.Releasability
  19. </th>
  20. <th
  21. className="text-center portfolio-sub-components-cell"
  22. >
  23. metric_domain.Reliability
  24. </th>
  25. <th
  26. className="text-center portfolio-sub-components-cell"
  27. >
  28. portfolio.metric_domain.vulnerabilities
  29. </th>
  30. <th
  31. className="text-center portfolio-sub-components-cell"
  32. >
  33. portfolio.metric_domain.security_hotspots
  34. </th>
  35. <th
  36. className="text-center portfolio-sub-components-cell"
  37. >
  38. metric_domain.Maintainability
  39. </th>
  40. <th
  41. className="text-center portfolio-sub-components-cell"
  42. >
  43. metric.ncloc.name
  44. </th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. <tr
  49. key="foo_app"
  50. >
  51. <td>
  52. <span
  53. className="display-flex-center"
  54. >
  55. <QualifierIcon
  56. className="spacer-right"
  57. qualifier="APP"
  58. />
  59. <Link
  60. onlyActiveOnIndex={false}
  61. style={Object {}}
  62. to={
  63. Object {
  64. "pathname": "/dashboard",
  65. "query": Object {
  66. "branch": undefined,
  67. "id": "foo_app",
  68. },
  69. }
  70. }
  71. >
  72. Foo
  73. </Link>
  74. <span
  75. className="spacer-left badge"
  76. >
  77. branches.main_branch
  78. </span>
  79. </span>
  80. </td>
  81. <td
  82. className="text-center"
  83. >
  84. <Measure
  85. metricKey="releasability_rating"
  86. metricType="RATING"
  87. value="3"
  88. />
  89. </td>
  90. <td
  91. className="text-center"
  92. >
  93. <Measure
  94. metricKey="reliability_rating"
  95. metricType="RATING"
  96. value="2"
  97. />
  98. </td>
  99. <td
  100. className="text-center"
  101. >
  102. <Measure
  103. metricKey="security_rating"
  104. metricType="RATING"
  105. value="1"
  106. />
  107. </td>
  108. <td
  109. className="text-center"
  110. >
  111. <Measure
  112. metricKey="security_review_rating"
  113. metricType="RATING"
  114. />
  115. </td>
  116. <td
  117. className="text-center"
  118. >
  119. <Measure
  120. metricKey="sqale_rating"
  121. metricType="RATING"
  122. value="4"
  123. />
  124. </td>
  125. <td
  126. className="text-right"
  127. >
  128. <span
  129. className="note"
  130. >
  131. <Measure
  132. metricKey="ncloc"
  133. metricType="SHORT_INT"
  134. value="200"
  135. />
  136. </span>
  137. <svg
  138. className="spacer-left"
  139. height="16"
  140. width="50"
  141. >
  142. <rect
  143. className="bar-chart-bar"
  144. fill="#4b9fd5"
  145. height="10"
  146. width={50}
  147. x="0"
  148. y="3"
  149. />
  150. </svg>
  151. </td>
  152. </tr>
  153. <tr
  154. key="foo"
  155. >
  156. <td>
  157. <span
  158. className="display-flex-center"
  159. >
  160. <QualifierIcon
  161. className="spacer-right"
  162. qualifier="SVW"
  163. />
  164. <Link
  165. onlyActiveOnIndex={false}
  166. style={Object {}}
  167. to={
  168. Object {
  169. "pathname": "/portfolio",
  170. "query": Object {
  171. "id": "foo",
  172. },
  173. }
  174. }
  175. >
  176. Foo
  177. </Link>
  178. </span>
  179. </td>
  180. <td
  181. className="text-center"
  182. >
  183. <Measure
  184. metricKey="releasability_rating"
  185. metricType="RATING"
  186. value="3"
  187. />
  188. </td>
  189. <td
  190. className="text-center"
  191. >
  192. <Measure
  193. metricKey="reliability_rating"
  194. metricType="RATING"
  195. value="2"
  196. />
  197. </td>
  198. <td
  199. className="text-center"
  200. >
  201. <Measure
  202. metricKey="security_rating"
  203. metricType="RATING"
  204. value="1"
  205. />
  206. </td>
  207. <td
  208. className="text-center"
  209. >
  210. <Measure
  211. metricKey="security_review_rating"
  212. metricType="RATING"
  213. />
  214. </td>
  215. <td
  216. className="text-center"
  217. >
  218. <Measure
  219. metricKey="sqale_rating"
  220. metricType="RATING"
  221. value="4"
  222. />
  223. </td>
  224. <td
  225. className="text-right"
  226. >
  227. <span
  228. className="note"
  229. >
  230. <Measure
  231. metricKey="ncloc"
  232. metricType="SHORT_INT"
  233. value="200"
  234. />
  235. </span>
  236. <svg
  237. className="spacer-left"
  238. height="16"
  239. width="50"
  240. >
  241. <rect
  242. className="bar-chart-bar"
  243. fill="#4b9fd5"
  244. height="10"
  245. width={50}
  246. x="0"
  247. y="3"
  248. />
  249. </svg>
  250. </td>
  251. </tr>
  252. <tr
  253. key="bar/branch-1"
  254. >
  255. <td>
  256. <span
  257. className="display-flex-center"
  258. >
  259. <QualifierIcon
  260. className="spacer-right"
  261. qualifier="TRK"
  262. />
  263. <Link
  264. onlyActiveOnIndex={false}
  265. style={Object {}}
  266. to={
  267. Object {
  268. "pathname": "/dashboard",
  269. "query": Object {
  270. "branch": "branch-1",
  271. "id": "barbar",
  272. },
  273. }
  274. }
  275. >
  276. Bar
  277. </Link>
  278. <span
  279. className="spacer-left"
  280. >
  281. <BranchIcon
  282. className="little-spacer-right"
  283. />
  284. <span
  285. className="note"
  286. >
  287. branch-1
  288. </span>
  289. </span>
  290. </span>
  291. </td>
  292. <td
  293. className="text-center"
  294. >
  295. <Measure
  296. metricKey="alert_status"
  297. metricType="LEVEL"
  298. value="ERROR"
  299. />
  300. </td>
  301. <td
  302. className="text-center"
  303. >
  304. <Measure
  305. metricKey="reliability_rating"
  306. metricType="RATING"
  307. value="2"
  308. />
  309. </td>
  310. <td
  311. className="text-center"
  312. >
  313. <Measure
  314. metricKey="security_rating"
  315. metricType="RATING"
  316. value="1"
  317. />
  318. </td>
  319. <td
  320. className="text-center"
  321. >
  322. <Measure
  323. metricKey="security_review_rating"
  324. metricType="RATING"
  325. />
  326. </td>
  327. <td
  328. className="text-center"
  329. >
  330. <Measure
  331. metricKey="sqale_rating"
  332. metricType="RATING"
  333. value="4"
  334. />
  335. </td>
  336. <td
  337. className="text-right"
  338. >
  339. <span
  340. className="note"
  341. >
  342. <Measure
  343. metricKey="ncloc"
  344. metricType="SHORT_INT"
  345. value="100"
  346. />
  347. </span>
  348. <svg
  349. className="spacer-left"
  350. height="16"
  351. width="50"
  352. >
  353. <rect
  354. className="bar-chart-bar"
  355. fill="#4b9fd5"
  356. height="10"
  357. width={25}
  358. x="0"
  359. y="3"
  360. />
  361. </svg>
  362. </td>
  363. </tr>
  364. <tr
  365. key="bar"
  366. >
  367. <td>
  368. <span
  369. className="display-flex-center"
  370. >
  371. <QualifierIcon
  372. className="spacer-right"
  373. qualifier="TRK"
  374. />
  375. <Link
  376. onlyActiveOnIndex={false}
  377. style={Object {}}
  378. to={
  379. Object {
  380. "pathname": "/dashboard",
  381. "query": Object {
  382. "branch": undefined,
  383. "id": "barbar",
  384. },
  385. }
  386. }
  387. >
  388. Bar
  389. </Link>
  390. <span
  391. className="spacer-left badge"
  392. >
  393. branches.main_branch
  394. </span>
  395. </span>
  396. </td>
  397. <td
  398. className="text-center"
  399. >
  400. <Measure
  401. metricKey="alert_status"
  402. metricType="LEVEL"
  403. value="ERROR"
  404. />
  405. </td>
  406. <td
  407. className="text-center"
  408. >
  409. <Measure
  410. metricKey="reliability_rating"
  411. metricType="RATING"
  412. value="2"
  413. />
  414. </td>
  415. <td
  416. className="text-center"
  417. >
  418. <Measure
  419. metricKey="security_rating"
  420. metricType="RATING"
  421. value="1"
  422. />
  423. </td>
  424. <td
  425. className="text-center"
  426. >
  427. <Measure
  428. metricKey="security_review_rating"
  429. metricType="RATING"
  430. />
  431. </td>
  432. <td
  433. className="text-center"
  434. >
  435. <Measure
  436. metricKey="sqale_rating"
  437. metricType="RATING"
  438. value="4"
  439. />
  440. </td>
  441. <td
  442. className="text-right"
  443. >
  444. <span
  445. className="note"
  446. >
  447. <Measure
  448. metricKey="ncloc"
  449. metricType="SHORT_INT"
  450. value="100"
  451. />
  452. </span>
  453. <svg
  454. className="spacer-left"
  455. height="16"
  456. width="50"
  457. >
  458. <rect
  459. className="bar-chart-bar"
  460. fill="#4b9fd5"
  461. height="10"
  462. width={25}
  463. x="0"
  464. y="3"
  465. />
  466. </svg>
  467. </td>
  468. </tr>
  469. <tr
  470. key="baz"
  471. >
  472. <td>
  473. <span
  474. className="display-flex-center"
  475. >
  476. <QualifierIcon
  477. className="spacer-right"
  478. qualifier="TRK"
  479. />
  480. <Link
  481. onlyActiveOnIndex={false}
  482. style={Object {}}
  483. to={
  484. Object {
  485. "pathname": "/dashboard",
  486. "query": Object {
  487. "branch": undefined,
  488. "id": "bazbaz",
  489. },
  490. }
  491. }
  492. >
  493. Baz
  494. </Link>
  495. <span
  496. className="spacer-left badge"
  497. >
  498. branches.main_branch
  499. </span>
  500. </span>
  501. </td>
  502. <td
  503. className="text-center"
  504. >
  505. <Measure
  506. metricKey="alert_status"
  507. metricType="LEVEL"
  508. value="WARN"
  509. />
  510. </td>
  511. <td
  512. className="text-center"
  513. >
  514. <Measure
  515. metricKey="reliability_rating"
  516. metricType="RATING"
  517. value="2"
  518. />
  519. </td>
  520. <td
  521. className="text-center"
  522. >
  523. <Measure
  524. metricKey="security_rating"
  525. metricType="RATING"
  526. value="1"
  527. />
  528. </td>
  529. <td
  530. className="text-center"
  531. >
  532. <Measure
  533. metricKey="security_review_rating"
  534. metricType="RATING"
  535. />
  536. </td>
  537. <td
  538. className="text-center"
  539. >
  540. <Measure
  541. metricKey="sqale_rating"
  542. metricType="RATING"
  543. value="4"
  544. />
  545. </td>
  546. <td
  547. className="text-right"
  548. >
  549. <span
  550. className="note"
  551. >
  552. <Measure
  553. metricKey="ncloc"
  554. metricType="SHORT_INT"
  555. value="150"
  556. />
  557. </span>
  558. <svg
  559. className="spacer-left"
  560. height="16"
  561. width="50"
  562. >
  563. <rect
  564. className="bar-chart-bar"
  565. fill="#4b9fd5"
  566. height="10"
  567. width={38}
  568. x="0"
  569. y="3"
  570. />
  571. </svg>
  572. </td>
  573. </tr>
  574. </tbody>
  575. </table>
  576. </div>
  577. `;