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 7.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  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"
  50. >
  51. <td>
  52. <Link
  53. className="link-with-icon"
  54. onlyActiveOnIndex={false}
  55. style={Object {}}
  56. to={
  57. Object {
  58. "pathname": "/dashboard",
  59. "query": Object {
  60. "branch": undefined,
  61. "id": "foo",
  62. },
  63. }
  64. }
  65. >
  66. <QualifierIcon
  67. qualifier="SVW"
  68. />
  69. Foo
  70. </Link>
  71. </td>
  72. <td
  73. className="text-center"
  74. >
  75. <Measure
  76. metricKey="releasability_rating"
  77. metricType="RATING"
  78. value="3"
  79. />
  80. </td>
  81. <td
  82. className="text-center"
  83. >
  84. <Measure
  85. metricKey="reliability_rating"
  86. metricType="RATING"
  87. value="2"
  88. />
  89. </td>
  90. <td
  91. className="text-center"
  92. >
  93. <Measure
  94. metricKey="security_rating"
  95. metricType="RATING"
  96. value="1"
  97. />
  98. </td>
  99. <td
  100. className="text-center"
  101. >
  102. <Measure
  103. metricKey="security_review_rating"
  104. metricType="RATING"
  105. />
  106. </td>
  107. <td
  108. className="text-center"
  109. >
  110. <Measure
  111. metricKey="sqale_rating"
  112. metricType="RATING"
  113. value="4"
  114. />
  115. </td>
  116. <td
  117. className="text-right"
  118. >
  119. <span
  120. className="note"
  121. >
  122. <Measure
  123. metricKey="ncloc"
  124. metricType="SHORT_INT"
  125. value="200"
  126. />
  127. </span>
  128. <svg
  129. className="spacer-left"
  130. height="16"
  131. width="50"
  132. >
  133. <rect
  134. className="bar-chart-bar"
  135. height="10"
  136. width={50}
  137. x="0"
  138. y="3"
  139. />
  140. </svg>
  141. </td>
  142. </tr>
  143. <tr
  144. key="bar"
  145. >
  146. <td>
  147. <Link
  148. className="link-with-icon"
  149. onlyActiveOnIndex={false}
  150. style={Object {}}
  151. to={
  152. Object {
  153. "pathname": "/dashboard",
  154. "query": Object {
  155. "branch": undefined,
  156. "id": "barbar",
  157. },
  158. }
  159. }
  160. >
  161. <QualifierIcon
  162. qualifier="TRK"
  163. />
  164. Bar
  165. </Link>
  166. </td>
  167. <td
  168. className="text-center"
  169. >
  170. <Measure
  171. metricKey="alert_status"
  172. metricType="LEVEL"
  173. value="ERROR"
  174. />
  175. </td>
  176. <td
  177. className="text-center"
  178. >
  179. <Measure
  180. metricKey="reliability_rating"
  181. metricType="RATING"
  182. value="2"
  183. />
  184. </td>
  185. <td
  186. className="text-center"
  187. >
  188. <Measure
  189. metricKey="security_rating"
  190. metricType="RATING"
  191. value="1"
  192. />
  193. </td>
  194. <td
  195. className="text-center"
  196. >
  197. <Measure
  198. metricKey="security_review_rating"
  199. metricType="RATING"
  200. />
  201. </td>
  202. <td
  203. className="text-center"
  204. >
  205. <Measure
  206. metricKey="sqale_rating"
  207. metricType="RATING"
  208. value="4"
  209. />
  210. </td>
  211. <td
  212. className="text-right"
  213. >
  214. <span
  215. className="note"
  216. >
  217. <Measure
  218. metricKey="ncloc"
  219. metricType="SHORT_INT"
  220. value="100"
  221. />
  222. </span>
  223. <svg
  224. className="spacer-left"
  225. height="16"
  226. width="50"
  227. >
  228. <rect
  229. className="bar-chart-bar"
  230. height="10"
  231. width={25}
  232. x="0"
  233. y="3"
  234. />
  235. </svg>
  236. </td>
  237. </tr>
  238. <tr
  239. key="baz"
  240. >
  241. <td>
  242. <Link
  243. className="link-with-icon"
  244. onlyActiveOnIndex={false}
  245. style={Object {}}
  246. to={
  247. Object {
  248. "pathname": "/dashboard",
  249. "query": Object {
  250. "branch": undefined,
  251. "id": "bazbaz",
  252. },
  253. }
  254. }
  255. >
  256. <QualifierIcon
  257. qualifier="TRK"
  258. />
  259. Baz
  260. </Link>
  261. </td>
  262. <td
  263. className="text-center"
  264. >
  265. <Measure
  266. metricKey="alert_status"
  267. metricType="LEVEL"
  268. value="WARN"
  269. />
  270. </td>
  271. <td
  272. className="text-center"
  273. >
  274. <Measure
  275. metricKey="reliability_rating"
  276. metricType="RATING"
  277. value="2"
  278. />
  279. </td>
  280. <td
  281. className="text-center"
  282. >
  283. <Measure
  284. metricKey="security_rating"
  285. metricType="RATING"
  286. value="1"
  287. />
  288. </td>
  289. <td
  290. className="text-center"
  291. >
  292. <Measure
  293. metricKey="security_review_rating"
  294. metricType="RATING"
  295. />
  296. </td>
  297. <td
  298. className="text-center"
  299. >
  300. <Measure
  301. metricKey="sqale_rating"
  302. metricType="RATING"
  303. value="4"
  304. />
  305. </td>
  306. <td
  307. className="text-right"
  308. >
  309. <span
  310. className="note"
  311. >
  312. <Measure
  313. metricKey="ncloc"
  314. metricType="SHORT_INT"
  315. value="150"
  316. />
  317. </span>
  318. <svg
  319. className="spacer-left"
  320. height="16"
  321. width="50"
  322. >
  323. <rect
  324. className="bar-chart-bar"
  325. height="10"
  326. width={38}
  327. x="0"
  328. y="3"
  329. />
  330. </svg>
  331. </td>
  332. </tr>
  333. </tbody>
  334. </table>
  335. </div>
  336. `;