]> source.dussan.org Git - sonarqube.git/blob
530b37dda8b19a972d7f98e08f259309a488c6eb
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should correctly handle a WS failure 1`] = `
4 <div
5   className="page page-limited"
6 >
7   <div
8     className="pr-overview"
9   >
10     <div
11       className="display-flex-row"
12     >
13       <div
14         className="pr-overview-quality-gate big-spacer-right"
15       >
16         <h3
17           className="spacer-bottom small"
18         >
19           overview.quality_gate
20           <DocTooltip
21             className="spacer-left"
22             doc={Promise {}}
23           />
24         </h3>
25         <LargeQualityGateBadge
26           component={
27             Object {
28               "breadcrumbs": Array [],
29               "key": "my-project",
30               "name": "MyProject",
31               "organization": "foo",
32               "qualifier": "TRK",
33               "qualityGate": Object {
34                 "isDefault": true,
35                 "key": "30",
36                 "name": "Sonar way",
37               },
38               "qualityProfiles": Array [
39                 Object {
40                   "deleted": false,
41                   "key": "my-qp",
42                   "language": "ts",
43                   "name": "Sonar way",
44                 },
45               ],
46               "tags": Array [],
47             }
48           }
49         />
50       </div>
51       <div
52         className="pr-overview-measurements flex-1"
53       >
54         <h3
55           className="spacer-bottom small"
56         >
57           overview.metrics
58         </h3>
59         <div
60           className="pr-overview-measurements-row display-flex-row"
61           key="BUG"
62         >
63           <div
64             className="pr-overview-measurements-value flex-1 small display-flex-center"
65           >
66             <IssueLabel
67               branchLike={
68                 Object {
69                   "analysisDate": "2018-01-01",
70                   "base": "master",
71                   "branch": "feature/foo/bar",
72                   "key": "1001",
73                   "target": "master",
74                   "title": "Foo Bar feature",
75                 }
76               }
77               className="overview-domain-measure-value"
78               component={
79                 Object {
80                   "breadcrumbs": Array [],
81                   "key": "my-project",
82                   "name": "MyProject",
83                   "organization": "foo",
84                   "qualifier": "TRK",
85                   "qualityGate": Object {
86                     "isDefault": true,
87                     "key": "30",
88                     "name": "Sonar way",
89                   },
90                   "qualityProfiles": Array [
91                     Object {
92                       "deleted": false,
93                       "key": "my-qp",
94                       "language": "ts",
95                       "name": "Sonar way",
96                     },
97                   ],
98                   "tags": Array [],
99                 }
100               }
101               measures={Array []}
102               type="BUG"
103             />
104           </div>
105           <div
106             className="pr-overview-measurements-rating display-flex-center"
107           >
108             <IssueRating
109               branchLike={
110                 Object {
111                   "analysisDate": "2018-01-01",
112                   "base": "master",
113                   "branch": "feature/foo/bar",
114                   "key": "1001",
115                   "target": "master",
116                   "title": "Foo Bar feature",
117                 }
118               }
119               component={
120                 Object {
121                   "breadcrumbs": Array [],
122                   "key": "my-project",
123                   "name": "MyProject",
124                   "organization": "foo",
125                   "qualifier": "TRK",
126                   "qualityGate": Object {
127                     "isDefault": true,
128                     "key": "30",
129                     "name": "Sonar way",
130                   },
131                   "qualityProfiles": Array [
132                     Object {
133                       "deleted": false,
134                       "key": "my-qp",
135                       "language": "ts",
136                       "name": "Sonar way",
137                     },
138                   ],
139                   "tags": Array [],
140                 }
141               }
142               measures={Array []}
143               type="BUG"
144             />
145           </div>
146         </div>
147         <div
148           className="pr-overview-measurements-row display-flex-row"
149           key="VULNERABILITY"
150         >
151           <div
152             className="pr-overview-measurements-value flex-1 small display-flex-center"
153           >
154             <IssueLabel
155               branchLike={
156                 Object {
157                   "analysisDate": "2018-01-01",
158                   "base": "master",
159                   "branch": "feature/foo/bar",
160                   "key": "1001",
161                   "target": "master",
162                   "title": "Foo Bar feature",
163                 }
164               }
165               className="overview-domain-measure-value"
166               component={
167                 Object {
168                   "breadcrumbs": Array [],
169                   "key": "my-project",
170                   "name": "MyProject",
171                   "organization": "foo",
172                   "qualifier": "TRK",
173                   "qualityGate": Object {
174                     "isDefault": true,
175                     "key": "30",
176                     "name": "Sonar way",
177                   },
178                   "qualityProfiles": Array [
179                     Object {
180                       "deleted": false,
181                       "key": "my-qp",
182                       "language": "ts",
183                       "name": "Sonar way",
184                     },
185                   ],
186                   "tags": Array [],
187                 }
188               }
189               measures={Array []}
190               type="VULNERABILITY"
191             />
192           </div>
193           <div
194             className="pr-overview-measurements-value flex-1 small display-flex-center"
195           >
196             <IssueLabel
197               branchLike={
198                 Object {
199                   "analysisDate": "2018-01-01",
200                   "base": "master",
201                   "branch": "feature/foo/bar",
202                   "key": "1001",
203                   "target": "master",
204                   "title": "Foo Bar feature",
205                 }
206               }
207               className="huge"
208               component={
209                 Object {
210                   "breadcrumbs": Array [],
211                   "key": "my-project",
212                   "name": "MyProject",
213                   "organization": "foo",
214                   "qualifier": "TRK",
215                   "qualityGate": Object {
216                     "isDefault": true,
217                     "key": "30",
218                     "name": "Sonar way",
219                   },
220                   "qualityProfiles": Array [
221                     Object {
222                       "deleted": false,
223                       "key": "my-qp",
224                       "language": "ts",
225                       "name": "Sonar way",
226                     },
227                   ],
228                   "tags": Array [],
229                 }
230               }
231               docTooltip={Promise {}}
232               measures={Array []}
233               type="SECURITY_HOTSPOT"
234             />
235           </div>
236           <div
237             className="pr-overview-measurements-rating display-flex-center"
238           >
239             <IssueRating
240               branchLike={
241                 Object {
242                   "analysisDate": "2018-01-01",
243                   "base": "master",
244                   "branch": "feature/foo/bar",
245                   "key": "1001",
246                   "target": "master",
247                   "title": "Foo Bar feature",
248                 }
249               }
250               component={
251                 Object {
252                   "breadcrumbs": Array [],
253                   "key": "my-project",
254                   "name": "MyProject",
255                   "organization": "foo",
256                   "qualifier": "TRK",
257                   "qualityGate": Object {
258                     "isDefault": true,
259                     "key": "30",
260                     "name": "Sonar way",
261                   },
262                   "qualityProfiles": Array [
263                     Object {
264                       "deleted": false,
265                       "key": "my-qp",
266                       "language": "ts",
267                       "name": "Sonar way",
268                     },
269                   ],
270                   "tags": Array [],
271                 }
272               }
273               measures={Array []}
274               type="VULNERABILITY"
275             />
276           </div>
277         </div>
278         <div
279           className="pr-overview-measurements-row display-flex-row"
280           key="CODE_SMELL"
281         >
282           <div
283             className="pr-overview-measurements-value flex-1 small display-flex-center"
284           >
285             <IssueLabel
286               branchLike={
287                 Object {
288                   "analysisDate": "2018-01-01",
289                   "base": "master",
290                   "branch": "feature/foo/bar",
291                   "key": "1001",
292                   "target": "master",
293                   "title": "Foo Bar feature",
294                 }
295               }
296               className="overview-domain-measure-value"
297               component={
298                 Object {
299                   "breadcrumbs": Array [],
300                   "key": "my-project",
301                   "name": "MyProject",
302                   "organization": "foo",
303                   "qualifier": "TRK",
304                   "qualityGate": Object {
305                     "isDefault": true,
306                     "key": "30",
307                     "name": "Sonar way",
308                   },
309                   "qualityProfiles": Array [
310                     Object {
311                       "deleted": false,
312                       "key": "my-qp",
313                       "language": "ts",
314                       "name": "Sonar way",
315                     },
316                   ],
317                   "tags": Array [],
318                 }
319               }
320               measures={Array []}
321               type="CODE_SMELL"
322             />
323           </div>
324           <div
325             className="pr-overview-measurements-rating display-flex-center"
326           >
327             <IssueRating
328               branchLike={
329                 Object {
330                   "analysisDate": "2018-01-01",
331                   "base": "master",
332                   "branch": "feature/foo/bar",
333                   "key": "1001",
334                   "target": "master",
335                   "title": "Foo Bar feature",
336                 }
337               }
338               component={
339                 Object {
340                   "breadcrumbs": Array [],
341                   "key": "my-project",
342                   "name": "MyProject",
343                   "organization": "foo",
344                   "qualifier": "TRK",
345                   "qualityGate": Object {
346                     "isDefault": true,
347                     "key": "30",
348                     "name": "Sonar way",
349                   },
350                   "qualityProfiles": Array [
351                     Object {
352                       "deleted": false,
353                       "key": "my-qp",
354                       "language": "ts",
355                       "name": "Sonar way",
356                     },
357                   ],
358                   "tags": Array [],
359                 }
360               }
361               measures={Array []}
362               type="CODE_SMELL"
363             />
364           </div>
365         </div>
366         <div
367           className="pr-overview-measurements-row display-flex-row"
368           key="COVERAGE"
369         >
370           <div
371             className="pr-overview-measurements-value flex-1 small display-flex-center"
372           >
373             <MeasurementLabel
374               branchLike={
375                 Object {
376                   "analysisDate": "2018-01-01",
377                   "base": "master",
378                   "branch": "feature/foo/bar",
379                   "key": "1001",
380                   "target": "master",
381                   "title": "Foo Bar feature",
382                 }
383               }
384               className="overview-domain-measure-value"
385               component={
386                 Object {
387                   "breadcrumbs": Array [],
388                   "key": "my-project",
389                   "name": "MyProject",
390                   "organization": "foo",
391                   "qualifier": "TRK",
392                   "qualityGate": Object {
393                     "isDefault": true,
394                     "key": "30",
395                     "name": "Sonar way",
396                   },
397                   "qualityProfiles": Array [
398                     Object {
399                       "deleted": false,
400                       "key": "my-qp",
401                       "language": "ts",
402                       "name": "Sonar way",
403                     },
404                   ],
405                   "tags": Array [],
406                 }
407               }
408               measures={Array []}
409               type="COVERAGE"
410             />
411           </div>
412           <AfterMergeEstimate
413             className="pr-overview-measurements-estimate"
414             measures={Array []}
415             type="COVERAGE"
416           />
417         </div>
418         <div
419           className="pr-overview-measurements-row display-flex-row"
420           key="DUPLICATION"
421         >
422           <div
423             className="pr-overview-measurements-value flex-1 small display-flex-center"
424           >
425             <MeasurementLabel
426               branchLike={
427                 Object {
428                   "analysisDate": "2018-01-01",
429                   "base": "master",
430                   "branch": "feature/foo/bar",
431                   "key": "1001",
432                   "target": "master",
433                   "title": "Foo Bar feature",
434                 }
435               }
436               className="overview-domain-measure-value"
437               component={
438                 Object {
439                   "breadcrumbs": Array [],
440                   "key": "my-project",
441                   "name": "MyProject",
442                   "organization": "foo",
443                   "qualifier": "TRK",
444                   "qualityGate": Object {
445                     "isDefault": true,
446                     "key": "30",
447                     "name": "Sonar way",
448                   },
449                   "qualityProfiles": Array [
450                     Object {
451                       "deleted": false,
452                       "key": "my-qp",
453                       "language": "ts",
454                       "name": "Sonar way",
455                     },
456                   ],
457                   "tags": Array [],
458                 }
459               }
460               measures={Array []}
461               type="DUPLICATION"
462             />
463           </div>
464           <AfterMergeEstimate
465             className="pr-overview-measurements-estimate"
466             measures={Array []}
467             type="DUPLICATION"
468           />
469         </div>
470       </div>
471     </div>
472   </div>
473 </div>
474 `;
475
476 exports[`should render correctly for a failed QG 1`] = `
477 <div
478   className="page page-limited"
479 >
480   <div
481     className="pr-overview has-conditions"
482   >
483     <div
484       className="display-flex-row"
485     >
486       <div
487         className="pr-overview-quality-gate big-spacer-right"
488       >
489         <h3
490           className="spacer-bottom small"
491         >
492           overview.quality_gate
493           <DocTooltip
494             className="spacer-left"
495             doc={Promise {}}
496           />
497         </h3>
498         <LargeQualityGateBadge
499           component={
500             Object {
501               "breadcrumbs": Array [],
502               "key": "my-project",
503               "name": "MyProject",
504               "organization": "foo",
505               "qualifier": "TRK",
506               "qualityGate": Object {
507                 "isDefault": true,
508                 "key": "30",
509                 "name": "Sonar way",
510               },
511               "qualityProfiles": Array [
512                 Object {
513                   "deleted": false,
514                   "key": "my-qp",
515                   "language": "ts",
516                   "name": "Sonar way",
517                 },
518               ],
519               "tags": Array [],
520             }
521           }
522           level="ERROR"
523         />
524       </div>
525       <div
526         className="pr-overview-failed-conditions big-spacer-right"
527       >
528         <h3
529           className="spacer-bottom small"
530         >
531           overview.failed_conditions
532         </h3>
533         <QualityGateConditions
534           branchLike={
535             Object {
536               "analysisDate": "2018-01-01",
537               "base": "master",
538               "branch": "feature/foo/bar",
539               "key": "1001",
540               "target": "master",
541               "title": "Foo Bar feature",
542             }
543           }
544           collapsible={true}
545           component={
546             Object {
547               "breadcrumbs": Array [],
548               "key": "my-project",
549               "name": "MyProject",
550               "organization": "foo",
551               "qualifier": "TRK",
552               "qualityGate": Object {
553                 "isDefault": true,
554                 "key": "30",
555                 "name": "Sonar way",
556               },
557               "qualityProfiles": Array [
558                 Object {
559                   "deleted": false,
560                   "key": "my-qp",
561                   "language": "ts",
562                   "name": "Sonar way",
563                 },
564               ],
565               "tags": Array [],
566             }
567           }
568           conditions={
569             Array [
570               Object {
571                 "actual": "10",
572                 "error": "1.0",
573                 "level": "ERROR",
574                 "metric": "new_code_smells",
575                 "op": "GT",
576                 "period": 1,
577               },
578             ]
579           }
580         />
581       </div>
582       <div
583         className="pr-overview-measurements flex-1"
584       >
585         <h3
586           className="spacer-bottom small"
587         >
588           overview.metrics
589         </h3>
590         <div
591           className="pr-overview-measurements-row display-flex-row"
592           key="BUG"
593         >
594           <div
595             className="pr-overview-measurements-value flex-1 small display-flex-center"
596           >
597             <IssueLabel
598               branchLike={
599                 Object {
600                   "analysisDate": "2018-01-01",
601                   "base": "master",
602                   "branch": "feature/foo/bar",
603                   "key": "1001",
604                   "target": "master",
605                   "title": "Foo Bar feature",
606                 }
607               }
608               className="overview-domain-measure-value"
609               component={
610                 Object {
611                   "breadcrumbs": Array [],
612                   "key": "my-project",
613                   "name": "MyProject",
614                   "organization": "foo",
615                   "qualifier": "TRK",
616                   "qualityGate": Object {
617                     "isDefault": true,
618                     "key": "30",
619                     "name": "Sonar way",
620                   },
621                   "qualityProfiles": Array [
622                     Object {
623                       "deleted": false,
624                       "key": "my-qp",
625                       "language": "ts",
626                       "name": "Sonar way",
627                     },
628                   ],
629                   "tags": Array [],
630                 }
631               }
632               measures={
633                 Array [
634                   Object {
635                     "bestValue": true,
636                     "metric": "new_bugs ",
637                     "periods": Array [
638                       Object {
639                         "bestValue": true,
640                         "index": 1,
641                         "value": "1.0",
642                       },
643                     ],
644                     "value": "1.0",
645                   },
646                   Object {
647                     "bestValue": true,
648                     "metric": "new_vulnerabilities",
649                     "periods": Array [
650                       Object {
651                         "bestValue": true,
652                         "index": 1,
653                         "value": "1.0",
654                       },
655                     ],
656                     "value": "1.0",
657                   },
658                   Object {
659                     "bestValue": true,
660                     "metric": "new_code_smells",
661                     "periods": Array [
662                       Object {
663                         "bestValue": true,
664                         "index": 1,
665                         "value": "1.0",
666                       },
667                     ],
668                     "value": "1.0",
669                   },
670                   Object {
671                     "bestValue": true,
672                     "metric": "new_security_hotspots",
673                     "periods": Array [
674                       Object {
675                         "bestValue": true,
676                         "index": 1,
677                         "value": "1.0",
678                       },
679                     ],
680                     "value": "1.0",
681                   },
682                 ]
683               }
684               type="BUG"
685             />
686           </div>
687           <div
688             className="pr-overview-measurements-rating display-flex-center"
689           >
690             <IssueRating
691               branchLike={
692                 Object {
693                   "analysisDate": "2018-01-01",
694                   "base": "master",
695                   "branch": "feature/foo/bar",
696                   "key": "1001",
697                   "target": "master",
698                   "title": "Foo Bar feature",
699                 }
700               }
701               component={
702                 Object {
703                   "breadcrumbs": Array [],
704                   "key": "my-project",
705                   "name": "MyProject",
706                   "organization": "foo",
707                   "qualifier": "TRK",
708                   "qualityGate": Object {
709                     "isDefault": true,
710                     "key": "30",
711                     "name": "Sonar way",
712                   },
713                   "qualityProfiles": Array [
714                     Object {
715                       "deleted": false,
716                       "key": "my-qp",
717                       "language": "ts",
718                       "name": "Sonar way",
719                     },
720                   ],
721                   "tags": Array [],
722                 }
723               }
724               measures={
725                 Array [
726                   Object {
727                     "bestValue": true,
728                     "metric": "new_bugs ",
729                     "periods": Array [
730                       Object {
731                         "bestValue": true,
732                         "index": 1,
733                         "value": "1.0",
734                       },
735                     ],
736                     "value": "1.0",
737                   },
738                   Object {
739                     "bestValue": true,
740                     "metric": "new_vulnerabilities",
741                     "periods": Array [
742                       Object {
743                         "bestValue": true,
744                         "index": 1,
745                         "value": "1.0",
746                       },
747                     ],
748                     "value": "1.0",
749                   },
750                   Object {
751                     "bestValue": true,
752                     "metric": "new_code_smells",
753                     "periods": Array [
754                       Object {
755                         "bestValue": true,
756                         "index": 1,
757                         "value": "1.0",
758                       },
759                     ],
760                     "value": "1.0",
761                   },
762                   Object {
763                     "bestValue": true,
764                     "metric": "new_security_hotspots",
765                     "periods": Array [
766                       Object {
767                         "bestValue": true,
768                         "index": 1,
769                         "value": "1.0",
770                       },
771                     ],
772                     "value": "1.0",
773                   },
774                 ]
775               }
776               type="BUG"
777             />
778           </div>
779         </div>
780         <div
781           className="pr-overview-measurements-row display-flex-row"
782           key="VULNERABILITY"
783         >
784           <div
785             className="pr-overview-measurements-value flex-1 small display-flex-center"
786           >
787             <IssueLabel
788               branchLike={
789                 Object {
790                   "analysisDate": "2018-01-01",
791                   "base": "master",
792                   "branch": "feature/foo/bar",
793                   "key": "1001",
794                   "target": "master",
795                   "title": "Foo Bar feature",
796                 }
797               }
798               className="overview-domain-measure-value"
799               component={
800                 Object {
801                   "breadcrumbs": Array [],
802                   "key": "my-project",
803                   "name": "MyProject",
804                   "organization": "foo",
805                   "qualifier": "TRK",
806                   "qualityGate": Object {
807                     "isDefault": true,
808                     "key": "30",
809                     "name": "Sonar way",
810                   },
811                   "qualityProfiles": Array [
812                     Object {
813                       "deleted": false,
814                       "key": "my-qp",
815                       "language": "ts",
816                       "name": "Sonar way",
817                     },
818                   ],
819                   "tags": Array [],
820                 }
821               }
822               measures={
823                 Array [
824                   Object {
825                     "bestValue": true,
826                     "metric": "new_bugs ",
827                     "periods": Array [
828                       Object {
829                         "bestValue": true,
830                         "index": 1,
831                         "value": "1.0",
832                       },
833                     ],
834                     "value": "1.0",
835                   },
836                   Object {
837                     "bestValue": true,
838                     "metric": "new_vulnerabilities",
839                     "periods": Array [
840                       Object {
841                         "bestValue": true,
842                         "index": 1,
843                         "value": "1.0",
844                       },
845                     ],
846                     "value": "1.0",
847                   },
848                   Object {
849                     "bestValue": true,
850                     "metric": "new_code_smells",
851                     "periods": Array [
852                       Object {
853                         "bestValue": true,
854                         "index": 1,
855                         "value": "1.0",
856                       },
857                     ],
858                     "value": "1.0",
859                   },
860                   Object {
861                     "bestValue": true,
862                     "metric": "new_security_hotspots",
863                     "periods": Array [
864                       Object {
865                         "bestValue": true,
866                         "index": 1,
867                         "value": "1.0",
868                       },
869                     ],
870                     "value": "1.0",
871                   },
872                 ]
873               }
874               type="VULNERABILITY"
875             />
876           </div>
877           <div
878             className="pr-overview-measurements-value flex-1 small display-flex-center"
879           >
880             <IssueLabel
881               branchLike={
882                 Object {
883                   "analysisDate": "2018-01-01",
884                   "base": "master",
885                   "branch": "feature/foo/bar",
886                   "key": "1001",
887                   "target": "master",
888                   "title": "Foo Bar feature",
889                 }
890               }
891               className="huge"
892               component={
893                 Object {
894                   "breadcrumbs": Array [],
895                   "key": "my-project",
896                   "name": "MyProject",
897                   "organization": "foo",
898                   "qualifier": "TRK",
899                   "qualityGate": Object {
900                     "isDefault": true,
901                     "key": "30",
902                     "name": "Sonar way",
903                   },
904                   "qualityProfiles": Array [
905                     Object {
906                       "deleted": false,
907                       "key": "my-qp",
908                       "language": "ts",
909                       "name": "Sonar way",
910                     },
911                   ],
912                   "tags": Array [],
913                 }
914               }
915               docTooltip={Promise {}}
916               measures={
917                 Array [
918                   Object {
919                     "bestValue": true,
920                     "metric": "new_bugs ",
921                     "periods": Array [
922                       Object {
923                         "bestValue": true,
924                         "index": 1,
925                         "value": "1.0",
926                       },
927                     ],
928                     "value": "1.0",
929                   },
930                   Object {
931                     "bestValue": true,
932                     "metric": "new_vulnerabilities",
933                     "periods": Array [
934                       Object {
935                         "bestValue": true,
936                         "index": 1,
937                         "value": "1.0",
938                       },
939                     ],
940                     "value": "1.0",
941                   },
942                   Object {
943                     "bestValue": true,
944                     "metric": "new_code_smells",
945                     "periods": Array [
946                       Object {
947                         "bestValue": true,
948                         "index": 1,
949                         "value": "1.0",
950                       },
951                     ],
952                     "value": "1.0",
953                   },
954                   Object {
955                     "bestValue": true,
956                     "metric": "new_security_hotspots",
957                     "periods": Array [
958                       Object {
959                         "bestValue": true,
960                         "index": 1,
961                         "value": "1.0",
962                       },
963                     ],
964                     "value": "1.0",
965                   },
966                 ]
967               }
968               type="SECURITY_HOTSPOT"
969             />
970           </div>
971           <div
972             className="pr-overview-measurements-rating display-flex-center"
973           >
974             <IssueRating
975               branchLike={
976                 Object {
977                   "analysisDate": "2018-01-01",
978                   "base": "master",
979                   "branch": "feature/foo/bar",
980                   "key": "1001",
981                   "target": "master",
982                   "title": "Foo Bar feature",
983                 }
984               }
985               component={
986                 Object {
987                   "breadcrumbs": Array [],
988                   "key": "my-project",
989                   "name": "MyProject",
990                   "organization": "foo",
991                   "qualifier": "TRK",
992                   "qualityGate": Object {
993                     "isDefault": true,
994                     "key": "30",
995                     "name": "Sonar way",
996                   },
997                   "qualityProfiles": Array [
998                     Object {
999                       "deleted": false,
1000                       "key": "my-qp",
1001                       "language": "ts",
1002                       "name": "Sonar way",
1003                     },
1004                   ],
1005                   "tags": Array [],
1006                 }
1007               }
1008               measures={
1009                 Array [
1010                   Object {
1011                     "bestValue": true,
1012                     "metric": "new_bugs ",
1013                     "periods": Array [
1014                       Object {
1015                         "bestValue": true,
1016                         "index": 1,
1017                         "value": "1.0",
1018                       },
1019                     ],
1020                     "value": "1.0",
1021                   },
1022                   Object {
1023                     "bestValue": true,
1024                     "metric": "new_vulnerabilities",
1025                     "periods": Array [
1026                       Object {
1027                         "bestValue": true,
1028                         "index": 1,
1029                         "value": "1.0",
1030                       },
1031                     ],
1032                     "value": "1.0",
1033                   },
1034                   Object {
1035                     "bestValue": true,
1036                     "metric": "new_code_smells",
1037                     "periods": Array [
1038                       Object {
1039                         "bestValue": true,
1040                         "index": 1,
1041                         "value": "1.0",
1042                       },
1043                     ],
1044                     "value": "1.0",
1045                   },
1046                   Object {
1047                     "bestValue": true,
1048                     "metric": "new_security_hotspots",
1049                     "periods": Array [
1050                       Object {
1051                         "bestValue": true,
1052                         "index": 1,
1053                         "value": "1.0",
1054                       },
1055                     ],
1056                     "value": "1.0",
1057                   },
1058                 ]
1059               }
1060               type="VULNERABILITY"
1061             />
1062           </div>
1063         </div>
1064         <div
1065           className="pr-overview-measurements-row display-flex-row"
1066           key="CODE_SMELL"
1067         >
1068           <div
1069             className="pr-overview-measurements-value flex-1 small display-flex-center"
1070           >
1071             <IssueLabel
1072               branchLike={
1073                 Object {
1074                   "analysisDate": "2018-01-01",
1075                   "base": "master",
1076                   "branch": "feature/foo/bar",
1077                   "key": "1001",
1078                   "target": "master",
1079                   "title": "Foo Bar feature",
1080                 }
1081               }
1082               className="overview-domain-measure-value"
1083               component={
1084                 Object {
1085                   "breadcrumbs": Array [],
1086                   "key": "my-project",
1087                   "name": "MyProject",
1088                   "organization": "foo",
1089                   "qualifier": "TRK",
1090                   "qualityGate": Object {
1091                     "isDefault": true,
1092                     "key": "30",
1093                     "name": "Sonar way",
1094                   },
1095                   "qualityProfiles": Array [
1096                     Object {
1097                       "deleted": false,
1098                       "key": "my-qp",
1099                       "language": "ts",
1100                       "name": "Sonar way",
1101                     },
1102                   ],
1103                   "tags": Array [],
1104                 }
1105               }
1106               measures={
1107                 Array [
1108                   Object {
1109                     "bestValue": true,
1110                     "metric": "new_bugs ",
1111                     "periods": Array [
1112                       Object {
1113                         "bestValue": true,
1114                         "index": 1,
1115                         "value": "1.0",
1116                       },
1117                     ],
1118                     "value": "1.0",
1119                   },
1120                   Object {
1121                     "bestValue": true,
1122                     "metric": "new_vulnerabilities",
1123                     "periods": Array [
1124                       Object {
1125                         "bestValue": true,
1126                         "index": 1,
1127                         "value": "1.0",
1128                       },
1129                     ],
1130                     "value": "1.0",
1131                   },
1132                   Object {
1133                     "bestValue": true,
1134                     "metric": "new_code_smells",
1135                     "periods": Array [
1136                       Object {
1137                         "bestValue": true,
1138                         "index": 1,
1139                         "value": "1.0",
1140                       },
1141                     ],
1142                     "value": "1.0",
1143                   },
1144                   Object {
1145                     "bestValue": true,
1146                     "metric": "new_security_hotspots",
1147                     "periods": Array [
1148                       Object {
1149                         "bestValue": true,
1150                         "index": 1,
1151                         "value": "1.0",
1152                       },
1153                     ],
1154                     "value": "1.0",
1155                   },
1156                 ]
1157               }
1158               type="CODE_SMELL"
1159             />
1160           </div>
1161           <div
1162             className="pr-overview-measurements-rating display-flex-center"
1163           >
1164             <IssueRating
1165               branchLike={
1166                 Object {
1167                   "analysisDate": "2018-01-01",
1168                   "base": "master",
1169                   "branch": "feature/foo/bar",
1170                   "key": "1001",
1171                   "target": "master",
1172                   "title": "Foo Bar feature",
1173                 }
1174               }
1175               component={
1176                 Object {
1177                   "breadcrumbs": Array [],
1178                   "key": "my-project",
1179                   "name": "MyProject",
1180                   "organization": "foo",
1181                   "qualifier": "TRK",
1182                   "qualityGate": Object {
1183                     "isDefault": true,
1184                     "key": "30",
1185                     "name": "Sonar way",
1186                   },
1187                   "qualityProfiles": Array [
1188                     Object {
1189                       "deleted": false,
1190                       "key": "my-qp",
1191                       "language": "ts",
1192                       "name": "Sonar way",
1193                     },
1194                   ],
1195                   "tags": Array [],
1196                 }
1197               }
1198               measures={
1199                 Array [
1200                   Object {
1201                     "bestValue": true,
1202                     "metric": "new_bugs ",
1203                     "periods": Array [
1204                       Object {
1205                         "bestValue": true,
1206                         "index": 1,
1207                         "value": "1.0",
1208                       },
1209                     ],
1210                     "value": "1.0",
1211                   },
1212                   Object {
1213                     "bestValue": true,
1214                     "metric": "new_vulnerabilities",
1215                     "periods": Array [
1216                       Object {
1217                         "bestValue": true,
1218                         "index": 1,
1219                         "value": "1.0",
1220                       },
1221                     ],
1222                     "value": "1.0",
1223                   },
1224                   Object {
1225                     "bestValue": true,
1226                     "metric": "new_code_smells",
1227                     "periods": Array [
1228                       Object {
1229                         "bestValue": true,
1230                         "index": 1,
1231                         "value": "1.0",
1232                       },
1233                     ],
1234                     "value": "1.0",
1235                   },
1236                   Object {
1237                     "bestValue": true,
1238                     "metric": "new_security_hotspots",
1239                     "periods": Array [
1240                       Object {
1241                         "bestValue": true,
1242                         "index": 1,
1243                         "value": "1.0",
1244                       },
1245                     ],
1246                     "value": "1.0",
1247                   },
1248                 ]
1249               }
1250               type="CODE_SMELL"
1251             />
1252           </div>
1253         </div>
1254         <div
1255           className="pr-overview-measurements-row display-flex-row"
1256           key="COVERAGE"
1257         >
1258           <div
1259             className="pr-overview-measurements-value flex-1 small display-flex-center"
1260           >
1261             <MeasurementLabel
1262               branchLike={
1263                 Object {
1264                   "analysisDate": "2018-01-01",
1265                   "base": "master",
1266                   "branch": "feature/foo/bar",
1267                   "key": "1001",
1268                   "target": "master",
1269                   "title": "Foo Bar feature",
1270                 }
1271               }
1272               className="overview-domain-measure-value"
1273               component={
1274                 Object {
1275                   "breadcrumbs": Array [],
1276                   "key": "my-project",
1277                   "name": "MyProject",
1278                   "organization": "foo",
1279                   "qualifier": "TRK",
1280                   "qualityGate": Object {
1281                     "isDefault": true,
1282                     "key": "30",
1283                     "name": "Sonar way",
1284                   },
1285                   "qualityProfiles": Array [
1286                     Object {
1287                       "deleted": false,
1288                       "key": "my-qp",
1289                       "language": "ts",
1290                       "name": "Sonar way",
1291                     },
1292                   ],
1293                   "tags": Array [],
1294                 }
1295               }
1296               measures={
1297                 Array [
1298                   Object {
1299                     "bestValue": true,
1300                     "metric": "new_bugs ",
1301                     "periods": Array [
1302                       Object {
1303                         "bestValue": true,
1304                         "index": 1,
1305                         "value": "1.0",
1306                       },
1307                     ],
1308                     "value": "1.0",
1309                   },
1310                   Object {
1311                     "bestValue": true,
1312                     "metric": "new_vulnerabilities",
1313                     "periods": Array [
1314                       Object {
1315                         "bestValue": true,
1316                         "index": 1,
1317                         "value": "1.0",
1318                       },
1319                     ],
1320                     "value": "1.0",
1321                   },
1322                   Object {
1323                     "bestValue": true,
1324                     "metric": "new_code_smells",
1325                     "periods": Array [
1326                       Object {
1327                         "bestValue": true,
1328                         "index": 1,
1329                         "value": "1.0",
1330                       },
1331                     ],
1332                     "value": "1.0",
1333                   },
1334                   Object {
1335                     "bestValue": true,
1336                     "metric": "new_security_hotspots",
1337                     "periods": Array [
1338                       Object {
1339                         "bestValue": true,
1340                         "index": 1,
1341                         "value": "1.0",
1342                       },
1343                     ],
1344                     "value": "1.0",
1345                   },
1346                 ]
1347               }
1348               type="COVERAGE"
1349             />
1350           </div>
1351           <AfterMergeEstimate
1352             className="pr-overview-measurements-estimate"
1353             measures={
1354               Array [
1355                 Object {
1356                   "bestValue": true,
1357                   "metric": "new_bugs ",
1358                   "periods": Array [
1359                     Object {
1360                       "bestValue": true,
1361                       "index": 1,
1362                       "value": "1.0",
1363                     },
1364                   ],
1365                   "value": "1.0",
1366                 },
1367                 Object {
1368                   "bestValue": true,
1369                   "metric": "new_vulnerabilities",
1370                   "periods": Array [
1371                     Object {
1372                       "bestValue": true,
1373                       "index": 1,
1374                       "value": "1.0",
1375                     },
1376                   ],
1377                   "value": "1.0",
1378                 },
1379                 Object {
1380                   "bestValue": true,
1381                   "metric": "new_code_smells",
1382                   "periods": Array [
1383                     Object {
1384                       "bestValue": true,
1385                       "index": 1,
1386                       "value": "1.0",
1387                     },
1388                   ],
1389                   "value": "1.0",
1390                 },
1391                 Object {
1392                   "bestValue": true,
1393                   "metric": "new_security_hotspots",
1394                   "periods": Array [
1395                     Object {
1396                       "bestValue": true,
1397                       "index": 1,
1398                       "value": "1.0",
1399                     },
1400                   ],
1401                   "value": "1.0",
1402                 },
1403               ]
1404             }
1405             type="COVERAGE"
1406           />
1407         </div>
1408         <div
1409           className="pr-overview-measurements-row display-flex-row"
1410           key="DUPLICATION"
1411         >
1412           <div
1413             className="pr-overview-measurements-value flex-1 small display-flex-center"
1414           >
1415             <MeasurementLabel
1416               branchLike={
1417                 Object {
1418                   "analysisDate": "2018-01-01",
1419                   "base": "master",
1420                   "branch": "feature/foo/bar",
1421                   "key": "1001",
1422                   "target": "master",
1423                   "title": "Foo Bar feature",
1424                 }
1425               }
1426               className="overview-domain-measure-value"
1427               component={
1428                 Object {
1429                   "breadcrumbs": Array [],
1430                   "key": "my-project",
1431                   "name": "MyProject",
1432                   "organization": "foo",
1433                   "qualifier": "TRK",
1434                   "qualityGate": Object {
1435                     "isDefault": true,
1436                     "key": "30",
1437                     "name": "Sonar way",
1438                   },
1439                   "qualityProfiles": Array [
1440                     Object {
1441                       "deleted": false,
1442                       "key": "my-qp",
1443                       "language": "ts",
1444                       "name": "Sonar way",
1445                     },
1446                   ],
1447                   "tags": Array [],
1448                 }
1449               }
1450               measures={
1451                 Array [
1452                   Object {
1453                     "bestValue": true,
1454                     "metric": "new_bugs ",
1455                     "periods": Array [
1456                       Object {
1457                         "bestValue": true,
1458                         "index": 1,
1459                         "value": "1.0",
1460                       },
1461                     ],
1462                     "value": "1.0",
1463                   },
1464                   Object {
1465                     "bestValue": true,
1466                     "metric": "new_vulnerabilities",
1467                     "periods": Array [
1468                       Object {
1469                         "bestValue": true,
1470                         "index": 1,
1471                         "value": "1.0",
1472                       },
1473                     ],
1474                     "value": "1.0",
1475                   },
1476                   Object {
1477                     "bestValue": true,
1478                     "metric": "new_code_smells",
1479                     "periods": Array [
1480                       Object {
1481                         "bestValue": true,
1482                         "index": 1,
1483                         "value": "1.0",
1484                       },
1485                     ],
1486                     "value": "1.0",
1487                   },
1488                   Object {
1489                     "bestValue": true,
1490                     "metric": "new_security_hotspots",
1491                     "periods": Array [
1492                       Object {
1493                         "bestValue": true,
1494                         "index": 1,
1495                         "value": "1.0",
1496                       },
1497                     ],
1498                     "value": "1.0",
1499                   },
1500                 ]
1501               }
1502               type="DUPLICATION"
1503             />
1504           </div>
1505           <AfterMergeEstimate
1506             className="pr-overview-measurements-estimate"
1507             measures={
1508               Array [
1509                 Object {
1510                   "bestValue": true,
1511                   "metric": "new_bugs ",
1512                   "periods": Array [
1513                     Object {
1514                       "bestValue": true,
1515                       "index": 1,
1516                       "value": "1.0",
1517                     },
1518                   ],
1519                   "value": "1.0",
1520                 },
1521                 Object {
1522                   "bestValue": true,
1523                   "metric": "new_vulnerabilities",
1524                   "periods": Array [
1525                     Object {
1526                       "bestValue": true,
1527                       "index": 1,
1528                       "value": "1.0",
1529                     },
1530                   ],
1531                   "value": "1.0",
1532                 },
1533                 Object {
1534                   "bestValue": true,
1535                   "metric": "new_code_smells",
1536                   "periods": Array [
1537                     Object {
1538                       "bestValue": true,
1539                       "index": 1,
1540                       "value": "1.0",
1541                     },
1542                   ],
1543                   "value": "1.0",
1544                 },
1545                 Object {
1546                   "bestValue": true,
1547                   "metric": "new_security_hotspots",
1548                   "periods": Array [
1549                     Object {
1550                       "bestValue": true,
1551                       "index": 1,
1552                       "value": "1.0",
1553                     },
1554                   ],
1555                   "value": "1.0",
1556                 },
1557               ]
1558             }
1559             type="DUPLICATION"
1560           />
1561         </div>
1562       </div>
1563     </div>
1564   </div>
1565 </div>
1566 `;
1567
1568 exports[`should render correctly for a passed QG 1`] = `
1569 <div
1570   className="page page-limited"
1571 >
1572   <div
1573     className="pr-overview"
1574   >
1575     <div
1576       className="display-flex-row"
1577     >
1578       <div
1579         className="pr-overview-quality-gate big-spacer-right"
1580       >
1581         <h3
1582           className="spacer-bottom small"
1583         >
1584           overview.quality_gate
1585           <DocTooltip
1586             className="spacer-left"
1587             doc={Promise {}}
1588           />
1589         </h3>
1590         <LargeQualityGateBadge
1591           component={
1592             Object {
1593               "breadcrumbs": Array [],
1594               "key": "my-project",
1595               "name": "MyProject",
1596               "organization": "foo",
1597               "qualifier": "TRK",
1598               "qualityGate": Object {
1599                 "isDefault": true,
1600                 "key": "30",
1601                 "name": "Sonar way",
1602               },
1603               "qualityProfiles": Array [
1604                 Object {
1605                   "deleted": false,
1606                   "key": "my-qp",
1607                   "language": "ts",
1608                   "name": "Sonar way",
1609                 },
1610               ],
1611               "tags": Array [],
1612             }
1613           }
1614           level="OK"
1615         />
1616       </div>
1617       <div
1618         className="pr-overview-measurements flex-1"
1619       >
1620         <h3
1621           className="spacer-bottom small"
1622         >
1623           overview.metrics
1624         </h3>
1625         <div
1626           className="pr-overview-measurements-row display-flex-row"
1627           key="BUG"
1628         >
1629           <div
1630             className="pr-overview-measurements-value flex-1 small display-flex-center"
1631           >
1632             <IssueLabel
1633               branchLike={
1634                 Object {
1635                   "analysisDate": "2018-01-01",
1636                   "base": "master",
1637                   "branch": "feature/foo/bar",
1638                   "key": "1001",
1639                   "target": "master",
1640                   "title": "Foo Bar feature",
1641                 }
1642               }
1643               className="overview-domain-measure-value"
1644               component={
1645                 Object {
1646                   "breadcrumbs": Array [],
1647                   "key": "my-project",
1648                   "name": "MyProject",
1649                   "organization": "foo",
1650                   "qualifier": "TRK",
1651                   "qualityGate": Object {
1652                     "isDefault": true,
1653                     "key": "30",
1654                     "name": "Sonar way",
1655                   },
1656                   "qualityProfiles": Array [
1657                     Object {
1658                       "deleted": false,
1659                       "key": "my-qp",
1660                       "language": "ts",
1661                       "name": "Sonar way",
1662                     },
1663                   ],
1664                   "tags": Array [],
1665                 }
1666               }
1667               measures={
1668                 Array [
1669                   Object {
1670                     "bestValue": true,
1671                     "metric": "new_bugs ",
1672                     "periods": Array [
1673                       Object {
1674                         "bestValue": true,
1675                         "index": 1,
1676                         "value": "1.0",
1677                       },
1678                     ],
1679                     "value": "1.0",
1680                   },
1681                   Object {
1682                     "bestValue": true,
1683                     "metric": "new_vulnerabilities",
1684                     "periods": Array [
1685                       Object {
1686                         "bestValue": true,
1687                         "index": 1,
1688                         "value": "1.0",
1689                       },
1690                     ],
1691                     "value": "1.0",
1692                   },
1693                   Object {
1694                     "bestValue": true,
1695                     "metric": "new_code_smells",
1696                     "periods": Array [
1697                       Object {
1698                         "bestValue": true,
1699                         "index": 1,
1700                         "value": "1.0",
1701                       },
1702                     ],
1703                     "value": "1.0",
1704                   },
1705                   Object {
1706                     "bestValue": true,
1707                     "metric": "new_security_hotspots",
1708                     "periods": Array [
1709                       Object {
1710                         "bestValue": true,
1711                         "index": 1,
1712                         "value": "1.0",
1713                       },
1714                     ],
1715                     "value": "1.0",
1716                   },
1717                 ]
1718               }
1719               type="BUG"
1720             />
1721           </div>
1722           <div
1723             className="pr-overview-measurements-rating display-flex-center"
1724           >
1725             <IssueRating
1726               branchLike={
1727                 Object {
1728                   "analysisDate": "2018-01-01",
1729                   "base": "master",
1730                   "branch": "feature/foo/bar",
1731                   "key": "1001",
1732                   "target": "master",
1733                   "title": "Foo Bar feature",
1734                 }
1735               }
1736               component={
1737                 Object {
1738                   "breadcrumbs": Array [],
1739                   "key": "my-project",
1740                   "name": "MyProject",
1741                   "organization": "foo",
1742                   "qualifier": "TRK",
1743                   "qualityGate": Object {
1744                     "isDefault": true,
1745                     "key": "30",
1746                     "name": "Sonar way",
1747                   },
1748                   "qualityProfiles": Array [
1749                     Object {
1750                       "deleted": false,
1751                       "key": "my-qp",
1752                       "language": "ts",
1753                       "name": "Sonar way",
1754                     },
1755                   ],
1756                   "tags": Array [],
1757                 }
1758               }
1759               measures={
1760                 Array [
1761                   Object {
1762                     "bestValue": true,
1763                     "metric": "new_bugs ",
1764                     "periods": Array [
1765                       Object {
1766                         "bestValue": true,
1767                         "index": 1,
1768                         "value": "1.0",
1769                       },
1770                     ],
1771                     "value": "1.0",
1772                   },
1773                   Object {
1774                     "bestValue": true,
1775                     "metric": "new_vulnerabilities",
1776                     "periods": Array [
1777                       Object {
1778                         "bestValue": true,
1779                         "index": 1,
1780                         "value": "1.0",
1781                       },
1782                     ],
1783                     "value": "1.0",
1784                   },
1785                   Object {
1786                     "bestValue": true,
1787                     "metric": "new_code_smells",
1788                     "periods": Array [
1789                       Object {
1790                         "bestValue": true,
1791                         "index": 1,
1792                         "value": "1.0",
1793                       },
1794                     ],
1795                     "value": "1.0",
1796                   },
1797                   Object {
1798                     "bestValue": true,
1799                     "metric": "new_security_hotspots",
1800                     "periods": Array [
1801                       Object {
1802                         "bestValue": true,
1803                         "index": 1,
1804                         "value": "1.0",
1805                       },
1806                     ],
1807                     "value": "1.0",
1808                   },
1809                 ]
1810               }
1811               type="BUG"
1812             />
1813           </div>
1814         </div>
1815         <div
1816           className="pr-overview-measurements-row display-flex-row"
1817           key="VULNERABILITY"
1818         >
1819           <div
1820             className="pr-overview-measurements-value flex-1 small display-flex-center"
1821           >
1822             <IssueLabel
1823               branchLike={
1824                 Object {
1825                   "analysisDate": "2018-01-01",
1826                   "base": "master",
1827                   "branch": "feature/foo/bar",
1828                   "key": "1001",
1829                   "target": "master",
1830                   "title": "Foo Bar feature",
1831                 }
1832               }
1833               className="overview-domain-measure-value"
1834               component={
1835                 Object {
1836                   "breadcrumbs": Array [],
1837                   "key": "my-project",
1838                   "name": "MyProject",
1839                   "organization": "foo",
1840                   "qualifier": "TRK",
1841                   "qualityGate": Object {
1842                     "isDefault": true,
1843                     "key": "30",
1844                     "name": "Sonar way",
1845                   },
1846                   "qualityProfiles": Array [
1847                     Object {
1848                       "deleted": false,
1849                       "key": "my-qp",
1850                       "language": "ts",
1851                       "name": "Sonar way",
1852                     },
1853                   ],
1854                   "tags": Array [],
1855                 }
1856               }
1857               measures={
1858                 Array [
1859                   Object {
1860                     "bestValue": true,
1861                     "metric": "new_bugs ",
1862                     "periods": Array [
1863                       Object {
1864                         "bestValue": true,
1865                         "index": 1,
1866                         "value": "1.0",
1867                       },
1868                     ],
1869                     "value": "1.0",
1870                   },
1871                   Object {
1872                     "bestValue": true,
1873                     "metric": "new_vulnerabilities",
1874                     "periods": Array [
1875                       Object {
1876                         "bestValue": true,
1877                         "index": 1,
1878                         "value": "1.0",
1879                       },
1880                     ],
1881                     "value": "1.0",
1882                   },
1883                   Object {
1884                     "bestValue": true,
1885                     "metric": "new_code_smells",
1886                     "periods": Array [
1887                       Object {
1888                         "bestValue": true,
1889                         "index": 1,
1890                         "value": "1.0",
1891                       },
1892                     ],
1893                     "value": "1.0",
1894                   },
1895                   Object {
1896                     "bestValue": true,
1897                     "metric": "new_security_hotspots",
1898                     "periods": Array [
1899                       Object {
1900                         "bestValue": true,
1901                         "index": 1,
1902                         "value": "1.0",
1903                       },
1904                     ],
1905                     "value": "1.0",
1906                   },
1907                 ]
1908               }
1909               type="VULNERABILITY"
1910             />
1911           </div>
1912           <div
1913             className="pr-overview-measurements-value flex-1 small display-flex-center"
1914           >
1915             <IssueLabel
1916               branchLike={
1917                 Object {
1918                   "analysisDate": "2018-01-01",
1919                   "base": "master",
1920                   "branch": "feature/foo/bar",
1921                   "key": "1001",
1922                   "target": "master",
1923                   "title": "Foo Bar feature",
1924                 }
1925               }
1926               className="huge"
1927               component={
1928                 Object {
1929                   "breadcrumbs": Array [],
1930                   "key": "my-project",
1931                   "name": "MyProject",
1932                   "organization": "foo",
1933                   "qualifier": "TRK",
1934                   "qualityGate": Object {
1935                     "isDefault": true,
1936                     "key": "30",
1937                     "name": "Sonar way",
1938                   },
1939                   "qualityProfiles": Array [
1940                     Object {
1941                       "deleted": false,
1942                       "key": "my-qp",
1943                       "language": "ts",
1944                       "name": "Sonar way",
1945                     },
1946                   ],
1947                   "tags": Array [],
1948                 }
1949               }
1950               docTooltip={Promise {}}
1951               measures={
1952                 Array [
1953                   Object {
1954                     "bestValue": true,
1955                     "metric": "new_bugs ",
1956                     "periods": Array [
1957                       Object {
1958                         "bestValue": true,
1959                         "index": 1,
1960                         "value": "1.0",
1961                       },
1962                     ],
1963                     "value": "1.0",
1964                   },
1965                   Object {
1966                     "bestValue": true,
1967                     "metric": "new_vulnerabilities",
1968                     "periods": Array [
1969                       Object {
1970                         "bestValue": true,
1971                         "index": 1,
1972                         "value": "1.0",
1973                       },
1974                     ],
1975                     "value": "1.0",
1976                   },
1977                   Object {
1978                     "bestValue": true,
1979                     "metric": "new_code_smells",
1980                     "periods": Array [
1981                       Object {
1982                         "bestValue": true,
1983                         "index": 1,
1984                         "value": "1.0",
1985                       },
1986                     ],
1987                     "value": "1.0",
1988                   },
1989                   Object {
1990                     "bestValue": true,
1991                     "metric": "new_security_hotspots",
1992                     "periods": Array [
1993                       Object {
1994                         "bestValue": true,
1995                         "index": 1,
1996                         "value": "1.0",
1997                       },
1998                     ],
1999                     "value": "1.0",
2000                   },
2001                 ]
2002               }
2003               type="SECURITY_HOTSPOT"
2004             />
2005           </div>
2006           <div
2007             className="pr-overview-measurements-rating display-flex-center"
2008           >
2009             <IssueRating
2010               branchLike={
2011                 Object {
2012                   "analysisDate": "2018-01-01",
2013                   "base": "master",
2014                   "branch": "feature/foo/bar",
2015                   "key": "1001",
2016                   "target": "master",
2017                   "title": "Foo Bar feature",
2018                 }
2019               }
2020               component={
2021                 Object {
2022                   "breadcrumbs": Array [],
2023                   "key": "my-project",
2024                   "name": "MyProject",
2025                   "organization": "foo",
2026                   "qualifier": "TRK",
2027                   "qualityGate": Object {
2028                     "isDefault": true,
2029                     "key": "30",
2030                     "name": "Sonar way",
2031                   },
2032                   "qualityProfiles": Array [
2033                     Object {
2034                       "deleted": false,
2035                       "key": "my-qp",
2036                       "language": "ts",
2037                       "name": "Sonar way",
2038                     },
2039                   ],
2040                   "tags": Array [],
2041                 }
2042               }
2043               measures={
2044                 Array [
2045                   Object {
2046                     "bestValue": true,
2047                     "metric": "new_bugs ",
2048                     "periods": Array [
2049                       Object {
2050                         "bestValue": true,
2051                         "index": 1,
2052                         "value": "1.0",
2053                       },
2054                     ],
2055                     "value": "1.0",
2056                   },
2057                   Object {
2058                     "bestValue": true,
2059                     "metric": "new_vulnerabilities",
2060                     "periods": Array [
2061                       Object {
2062                         "bestValue": true,
2063                         "index": 1,
2064                         "value": "1.0",
2065                       },
2066                     ],
2067                     "value": "1.0",
2068                   },
2069                   Object {
2070                     "bestValue": true,
2071                     "metric": "new_code_smells",
2072                     "periods": Array [
2073                       Object {
2074                         "bestValue": true,
2075                         "index": 1,
2076                         "value": "1.0",
2077                       },
2078                     ],
2079                     "value": "1.0",
2080                   },
2081                   Object {
2082                     "bestValue": true,
2083                     "metric": "new_security_hotspots",
2084                     "periods": Array [
2085                       Object {
2086                         "bestValue": true,
2087                         "index": 1,
2088                         "value": "1.0",
2089                       },
2090                     ],
2091                     "value": "1.0",
2092                   },
2093                 ]
2094               }
2095               type="VULNERABILITY"
2096             />
2097           </div>
2098         </div>
2099         <div
2100           className="pr-overview-measurements-row display-flex-row"
2101           key="CODE_SMELL"
2102         >
2103           <div
2104             className="pr-overview-measurements-value flex-1 small display-flex-center"
2105           >
2106             <IssueLabel
2107               branchLike={
2108                 Object {
2109                   "analysisDate": "2018-01-01",
2110                   "base": "master",
2111                   "branch": "feature/foo/bar",
2112                   "key": "1001",
2113                   "target": "master",
2114                   "title": "Foo Bar feature",
2115                 }
2116               }
2117               className="overview-domain-measure-value"
2118               component={
2119                 Object {
2120                   "breadcrumbs": Array [],
2121                   "key": "my-project",
2122                   "name": "MyProject",
2123                   "organization": "foo",
2124                   "qualifier": "TRK",
2125                   "qualityGate": Object {
2126                     "isDefault": true,
2127                     "key": "30",
2128                     "name": "Sonar way",
2129                   },
2130                   "qualityProfiles": Array [
2131                     Object {
2132                       "deleted": false,
2133                       "key": "my-qp",
2134                       "language": "ts",
2135                       "name": "Sonar way",
2136                     },
2137                   ],
2138                   "tags": Array [],
2139                 }
2140               }
2141               measures={
2142                 Array [
2143                   Object {
2144                     "bestValue": true,
2145                     "metric": "new_bugs ",
2146                     "periods": Array [
2147                       Object {
2148                         "bestValue": true,
2149                         "index": 1,
2150                         "value": "1.0",
2151                       },
2152                     ],
2153                     "value": "1.0",
2154                   },
2155                   Object {
2156                     "bestValue": true,
2157                     "metric": "new_vulnerabilities",
2158                     "periods": Array [
2159                       Object {
2160                         "bestValue": true,
2161                         "index": 1,
2162                         "value": "1.0",
2163                       },
2164                     ],
2165                     "value": "1.0",
2166                   },
2167                   Object {
2168                     "bestValue": true,
2169                     "metric": "new_code_smells",
2170                     "periods": Array [
2171                       Object {
2172                         "bestValue": true,
2173                         "index": 1,
2174                         "value": "1.0",
2175                       },
2176                     ],
2177                     "value": "1.0",
2178                   },
2179                   Object {
2180                     "bestValue": true,
2181                     "metric": "new_security_hotspots",
2182                     "periods": Array [
2183                       Object {
2184                         "bestValue": true,
2185                         "index": 1,
2186                         "value": "1.0",
2187                       },
2188                     ],
2189                     "value": "1.0",
2190                   },
2191                 ]
2192               }
2193               type="CODE_SMELL"
2194             />
2195           </div>
2196           <div
2197             className="pr-overview-measurements-rating display-flex-center"
2198           >
2199             <IssueRating
2200               branchLike={
2201                 Object {
2202                   "analysisDate": "2018-01-01",
2203                   "base": "master",
2204                   "branch": "feature/foo/bar",
2205                   "key": "1001",
2206                   "target": "master",
2207                   "title": "Foo Bar feature",
2208                 }
2209               }
2210               component={
2211                 Object {
2212                   "breadcrumbs": Array [],
2213                   "key": "my-project",
2214                   "name": "MyProject",
2215                   "organization": "foo",
2216                   "qualifier": "TRK",
2217                   "qualityGate": Object {
2218                     "isDefault": true,
2219                     "key": "30",
2220                     "name": "Sonar way",
2221                   },
2222                   "qualityProfiles": Array [
2223                     Object {
2224                       "deleted": false,
2225                       "key": "my-qp",
2226                       "language": "ts",
2227                       "name": "Sonar way",
2228                     },
2229                   ],
2230                   "tags": Array [],
2231                 }
2232               }
2233               measures={
2234                 Array [
2235                   Object {
2236                     "bestValue": true,
2237                     "metric": "new_bugs ",
2238                     "periods": Array [
2239                       Object {
2240                         "bestValue": true,
2241                         "index": 1,
2242                         "value": "1.0",
2243                       },
2244                     ],
2245                     "value": "1.0",
2246                   },
2247                   Object {
2248                     "bestValue": true,
2249                     "metric": "new_vulnerabilities",
2250                     "periods": Array [
2251                       Object {
2252                         "bestValue": true,
2253                         "index": 1,
2254                         "value": "1.0",
2255                       },
2256                     ],
2257                     "value": "1.0",
2258                   },
2259                   Object {
2260                     "bestValue": true,
2261                     "metric": "new_code_smells",
2262                     "periods": Array [
2263                       Object {
2264                         "bestValue": true,
2265                         "index": 1,
2266                         "value": "1.0",
2267                       },
2268                     ],
2269                     "value": "1.0",
2270                   },
2271                   Object {
2272                     "bestValue": true,
2273                     "metric": "new_security_hotspots",
2274                     "periods": Array [
2275                       Object {
2276                         "bestValue": true,
2277                         "index": 1,
2278                         "value": "1.0",
2279                       },
2280                     ],
2281                     "value": "1.0",
2282                   },
2283                 ]
2284               }
2285               type="CODE_SMELL"
2286             />
2287           </div>
2288         </div>
2289         <div
2290           className="pr-overview-measurements-row display-flex-row"
2291           key="COVERAGE"
2292         >
2293           <div
2294             className="pr-overview-measurements-value flex-1 small display-flex-center"
2295           >
2296             <MeasurementLabel
2297               branchLike={
2298                 Object {
2299                   "analysisDate": "2018-01-01",
2300                   "base": "master",
2301                   "branch": "feature/foo/bar",
2302                   "key": "1001",
2303                   "target": "master",
2304                   "title": "Foo Bar feature",
2305                 }
2306               }
2307               className="overview-domain-measure-value"
2308               component={
2309                 Object {
2310                   "breadcrumbs": Array [],
2311                   "key": "my-project",
2312                   "name": "MyProject",
2313                   "organization": "foo",
2314                   "qualifier": "TRK",
2315                   "qualityGate": Object {
2316                     "isDefault": true,
2317                     "key": "30",
2318                     "name": "Sonar way",
2319                   },
2320                   "qualityProfiles": Array [
2321                     Object {
2322                       "deleted": false,
2323                       "key": "my-qp",
2324                       "language": "ts",
2325                       "name": "Sonar way",
2326                     },
2327                   ],
2328                   "tags": Array [],
2329                 }
2330               }
2331               measures={
2332                 Array [
2333                   Object {
2334                     "bestValue": true,
2335                     "metric": "new_bugs ",
2336                     "periods": Array [
2337                       Object {
2338                         "bestValue": true,
2339                         "index": 1,
2340                         "value": "1.0",
2341                       },
2342                     ],
2343                     "value": "1.0",
2344                   },
2345                   Object {
2346                     "bestValue": true,
2347                     "metric": "new_vulnerabilities",
2348                     "periods": Array [
2349                       Object {
2350                         "bestValue": true,
2351                         "index": 1,
2352                         "value": "1.0",
2353                       },
2354                     ],
2355                     "value": "1.0",
2356                   },
2357                   Object {
2358                     "bestValue": true,
2359                     "metric": "new_code_smells",
2360                     "periods": Array [
2361                       Object {
2362                         "bestValue": true,
2363                         "index": 1,
2364                         "value": "1.0",
2365                       },
2366                     ],
2367                     "value": "1.0",
2368                   },
2369                   Object {
2370                     "bestValue": true,
2371                     "metric": "new_security_hotspots",
2372                     "periods": Array [
2373                       Object {
2374                         "bestValue": true,
2375                         "index": 1,
2376                         "value": "1.0",
2377                       },
2378                     ],
2379                     "value": "1.0",
2380                   },
2381                 ]
2382               }
2383               type="COVERAGE"
2384             />
2385           </div>
2386           <AfterMergeEstimate
2387             className="pr-overview-measurements-estimate"
2388             measures={
2389               Array [
2390                 Object {
2391                   "bestValue": true,
2392                   "metric": "new_bugs ",
2393                   "periods": Array [
2394                     Object {
2395                       "bestValue": true,
2396                       "index": 1,
2397                       "value": "1.0",
2398                     },
2399                   ],
2400                   "value": "1.0",
2401                 },
2402                 Object {
2403                   "bestValue": true,
2404                   "metric": "new_vulnerabilities",
2405                   "periods": Array [
2406                     Object {
2407                       "bestValue": true,
2408                       "index": 1,
2409                       "value": "1.0",
2410                     },
2411                   ],
2412                   "value": "1.0",
2413                 },
2414                 Object {
2415                   "bestValue": true,
2416                   "metric": "new_code_smells",
2417                   "periods": Array [
2418                     Object {
2419                       "bestValue": true,
2420                       "index": 1,
2421                       "value": "1.0",
2422                     },
2423                   ],
2424                   "value": "1.0",
2425                 },
2426                 Object {
2427                   "bestValue": true,
2428                   "metric": "new_security_hotspots",
2429                   "periods": Array [
2430                     Object {
2431                       "bestValue": true,
2432                       "index": 1,
2433                       "value": "1.0",
2434                     },
2435                   ],
2436                   "value": "1.0",
2437                 },
2438               ]
2439             }
2440             type="COVERAGE"
2441           />
2442         </div>
2443         <div
2444           className="pr-overview-measurements-row display-flex-row"
2445           key="DUPLICATION"
2446         >
2447           <div
2448             className="pr-overview-measurements-value flex-1 small display-flex-center"
2449           >
2450             <MeasurementLabel
2451               branchLike={
2452                 Object {
2453                   "analysisDate": "2018-01-01",
2454                   "base": "master",
2455                   "branch": "feature/foo/bar",
2456                   "key": "1001",
2457                   "target": "master",
2458                   "title": "Foo Bar feature",
2459                 }
2460               }
2461               className="overview-domain-measure-value"
2462               component={
2463                 Object {
2464                   "breadcrumbs": Array [],
2465                   "key": "my-project",
2466                   "name": "MyProject",
2467                   "organization": "foo",
2468                   "qualifier": "TRK",
2469                   "qualityGate": Object {
2470                     "isDefault": true,
2471                     "key": "30",
2472                     "name": "Sonar way",
2473                   },
2474                   "qualityProfiles": Array [
2475                     Object {
2476                       "deleted": false,
2477                       "key": "my-qp",
2478                       "language": "ts",
2479                       "name": "Sonar way",
2480                     },
2481                   ],
2482                   "tags": Array [],
2483                 }
2484               }
2485               measures={
2486                 Array [
2487                   Object {
2488                     "bestValue": true,
2489                     "metric": "new_bugs ",
2490                     "periods": Array [
2491                       Object {
2492                         "bestValue": true,
2493                         "index": 1,
2494                         "value": "1.0",
2495                       },
2496                     ],
2497                     "value": "1.0",
2498                   },
2499                   Object {
2500                     "bestValue": true,
2501                     "metric": "new_vulnerabilities",
2502                     "periods": Array [
2503                       Object {
2504                         "bestValue": true,
2505                         "index": 1,
2506                         "value": "1.0",
2507                       },
2508                     ],
2509                     "value": "1.0",
2510                   },
2511                   Object {
2512                     "bestValue": true,
2513                     "metric": "new_code_smells",
2514                     "periods": Array [
2515                       Object {
2516                         "bestValue": true,
2517                         "index": 1,
2518                         "value": "1.0",
2519                       },
2520                     ],
2521                     "value": "1.0",
2522                   },
2523                   Object {
2524                     "bestValue": true,
2525                     "metric": "new_security_hotspots",
2526                     "periods": Array [
2527                       Object {
2528                         "bestValue": true,
2529                         "index": 1,
2530                         "value": "1.0",
2531                       },
2532                     ],
2533                     "value": "1.0",
2534                   },
2535                 ]
2536               }
2537               type="DUPLICATION"
2538             />
2539           </div>
2540           <AfterMergeEstimate
2541             className="pr-overview-measurements-estimate"
2542             measures={
2543               Array [
2544                 Object {
2545                   "bestValue": true,
2546                   "metric": "new_bugs ",
2547                   "periods": Array [
2548                     Object {
2549                       "bestValue": true,
2550                       "index": 1,
2551                       "value": "1.0",
2552                     },
2553                   ],
2554                   "value": "1.0",
2555                 },
2556                 Object {
2557                   "bestValue": true,
2558                   "metric": "new_vulnerabilities",
2559                   "periods": Array [
2560                     Object {
2561                       "bestValue": true,
2562                       "index": 1,
2563                       "value": "1.0",
2564                     },
2565                   ],
2566                   "value": "1.0",
2567                 },
2568                 Object {
2569                   "bestValue": true,
2570                   "metric": "new_code_smells",
2571                   "periods": Array [
2572                     Object {
2573                       "bestValue": true,
2574                       "index": 1,
2575                       "value": "1.0",
2576                     },
2577                   ],
2578                   "value": "1.0",
2579                 },
2580                 Object {
2581                   "bestValue": true,
2582                   "metric": "new_security_hotspots",
2583                   "periods": Array [
2584                     Object {
2585                       "bestValue": true,
2586                       "index": 1,
2587                       "value": "1.0",
2588                     },
2589                   ],
2590                   "value": "1.0",
2591                 },
2592               ]
2593             }
2594             type="DUPLICATION"
2595           />
2596         </div>
2597       </div>
2598     </div>
2599   </div>
2600 </div>
2601 `;